Dont request release events for most kittens

They are not needed and there is always a small risk that a release
event could be delivered after the kitten has stopped reading from the
tty, thereby leaking into the environment.
This commit is contained in:
Kovid Goyal
2023-03-17 10:50:10 +05:30
parent de74b93b16
commit 509a45b579
4 changed files with 23 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ func new_loop() *Loop {
l := Loop{controlling_term: nil, timers_temp: make([]*timer, 4)}
l.terminal_options.alternate_screen = true
l.terminal_options.restore_colors = true
l.terminal_options.kitty_keyboard_mode = 0b11111
l.terminal_options.kitty_keyboard_mode = 0b11101 // full protocol without release and repeat events
l.escape_code_parser.HandleCSI = l.handle_csi
l.escape_code_parser.HandleOSC = l.handle_osc
l.escape_code_parser.HandleDCS = l.handle_dcs