csi: xtsave: store modes' SET state, not the current state

This commit is contained in:
Daniel Eklöf 2020-08-16 16:57:39 +02:00
parent cc48366f02
commit b4f868e566
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 25 additions and 22 deletions

View file

@ -246,24 +246,27 @@ struct terminal {
bool eight_bit;
} meta;
/* Saved DECSET modes */
/* Saved DECSET modes - we save the SET state */
struct {
enum cursor_origin origin;
enum cursor_keys cursor_keys_mode;
//enum keypad_keys keypad_keys_mode;
bool origin;
bool application_cursor_keys;
bool reverse;
bool hide_cursor;
bool show_cursor;
bool auto_margin;
//bool cursor_blink;
bool insert_mode;
bool bracketed_paste;
bool focus_events;
bool alt_scrolling;
enum mouse_tracking mouse_tracking;
enum mouse_reporting mouse_reporting;
struct {
bool esc_prefix;
bool eight_bit;
} meta;
//bool mouse_x10;
bool mouse_click;
bool mouse_drag;
bool mouse_motion;
//bool mouse_utf8;
bool mouse_sgr;
bool mouse_urxvt;
bool meta_eight_bit;
bool meta_esc_prefix;
bool alt_screen;
} xtsave;