mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
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:
@@ -151,6 +151,15 @@ func FullKeyboardProtocol(self *Loop) {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b11111
|
||||
}
|
||||
|
||||
func (self *Loop) FullKeyboardProtocolWithoutReleaseEvents() *Loop {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b11101
|
||||
return self
|
||||
}
|
||||
|
||||
func FullKeyboardProtocolWithoutReleaseEvents(self *Loop) {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b11101
|
||||
}
|
||||
|
||||
func (self *Loop) MouseTrackingMode(mt MouseTracking) *Loop {
|
||||
self.terminal_options.mouse_tracking = mt
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user