mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
csi: implement “CSI ? 1035” - toggle Num Lock override
This adds a num_lock_modifier state to the terminal, and hooks up “CSI?1035h/l” to toggle it.
This commit is contained in:
parent
75bd780f02
commit
2382d6b448
3 changed files with 11 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ struct terminal {
|
|||
bool eight_bit;
|
||||
} meta;
|
||||
|
||||
bool num_lock_modifier;
|
||||
bool bell_is_urgent;
|
||||
|
||||
/* Saved DECSET modes - we save the SET state */
|
||||
|
|
@ -275,6 +276,7 @@ struct terminal {
|
|||
uint32_t mouse_urxvt:1;
|
||||
uint32_t meta_eight_bit:1;
|
||||
uint32_t meta_esc_prefix:1;
|
||||
uint32_t num_lock_modifier:1;
|
||||
uint32_t bell_is_urgent:1;
|
||||
uint32_t alt_screen:1;
|
||||
} xtsave;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue