kitten @ cmd: Dont generate key release events

We dont need them and they sometimes can spill over into the prompt if
the command is very fast.
This commit is contained in:
Kovid Goyal
2023-01-23 16:18:46 +05:30
parent cc1f0bc3fe
commit 97467acb1f
4 changed files with 16 additions and 6 deletions

View File

@@ -124,6 +124,15 @@ func NoAlternateScreen(self *Loop) {
self.terminal_options.alternate_screen = false
}
func (self *Loop) OnlyDisambiguateKeys() *Loop {
self.terminal_options.kitty_keyboard_mode = 0b1
return self
}
func OnlyDisambiguateKeys(self *Loop) {
self.terminal_options.kitty_keyboard_mode = 0b1
}
func (self *Loop) MouseTrackingMode(mt MouseTracking) *Loop {
self.terminal_options.mouse_tracking = mt
return self