aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-16 14:57:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-16 14:57:39 +0000
commitb4f868e566954e6844bd74754782d0aca8bf4631 (patch)
treee6d076f9697188aa850857ed2aa471fedb48f999 /terminal.h
parentcsi: implement CSI ? Pm s - XTSAVE (diff)
csi: xtsave: store modes' SET state, not the current state
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/terminal.h b/terminal.h
index 22cea4bf..8f3416e6 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;