~vcs-imports/putty/master

« back to all changes in this revision

Viewing changes to terminal/terminal.h

  • Committer: Simon Tatham
  • Date: 2023-10-19 17:55:04 UTC
  • Revision ID: git-v1:7b10e34b8f636008243df1a1add61c0763befb38
Recognise and discard the APC terminal escape sequence.

I encountered an instance of this sequence in the log files from a
clang CI build. The payload text inside the wrapper was
"bk;t=1697630539879"; I don't know what the "bk" stood for, but the
second half appears to be a timestamp in milliseconds since the Unix
epoch.

I don't think there's anything we can (or should) actually _do_ with
this sequence, but I think it's useful to at least recognise it, so
that it can be conveniently discarded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
#define ANSI_QUE(x)     ANSI(x,1)
183
183
 
184
184
#define OSC_STR_MAX 2048
 
185
    bool osc_is_apc;
185
186
    int osc_strlen;
186
187
    char osc_string[OSC_STR_MAX + 1];
187
188
    bool osc_w;