mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 19:11:00 -05:00
Rework identification of OSC sequences.
I didn't like the previous patch setting a flag claiming that two kinds of thing were APC which aren't in fact APC. So I've made a little enum to distinguish them in the code. There's an outside chance we might want to handle some case of these in future, in which case this makes it easier, but more likely it's just making me feel less wrong about it. But I've also folded the two existing flags osc_is_apc and osc_w into that single enum field, which I think is an improvement.
This commit is contained in:
@ -73,6 +73,14 @@ struct term_utf8_decode {
|
||||
|
||||
struct term_userpass_state;
|
||||
|
||||
typedef enum {
|
||||
OSCLIKE_OSC,
|
||||
OSCLIKE_OSC_W,
|
||||
OSCLIKE_APC,
|
||||
OSCLIKE_SOS,
|
||||
OSCLIKE_PM,
|
||||
} OscType;
|
||||
|
||||
struct terminal_tag {
|
||||
|
||||
int compatibility_level;
|
||||
@ -183,10 +191,9 @@ struct terminal_tag {
|
||||
#define ANSI_QUE(x) ANSI(x,1)
|
||||
|
||||
#define OSC_STR_MAX 2048
|
||||
bool osc_is_apc;
|
||||
OscType osc_type;
|
||||
int osc_strlen;
|
||||
char osc_string[OSC_STR_MAX + 1];
|
||||
bool osc_w;
|
||||
|
||||
char id_string[1024];
|
||||
|
||||
|
Reference in New Issue
Block a user