We still need full keyboard protocol for @ send-text
This commit is contained in:
parent
97467acb1f
commit
11f98592f7
@ -27,6 +27,9 @@ func is_stream_response(serialized_response []byte) bool {
|
||||
func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error) {
|
||||
serialized_response = make([]byte, 0)
|
||||
lp, err := loop.New(loop.NoAlternateScreen, loop.NoRestoreColors, loop.OnlyDisambiguateKeys)
|
||||
if io_data.on_key_event != nil {
|
||||
lp.FullKeyboardProtocol()
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
@ -133,6 +133,15 @@ func OnlyDisambiguateKeys(self *Loop) {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b1
|
||||
}
|
||||
|
||||
func (self *Loop) FullKeyboardProtocol() *Loop {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b11111
|
||||
return self
|
||||
}
|
||||
|
||||
func FullKeyboardProtocol(self *Loop) {
|
||||
self.terminal_options.kitty_keyboard_mode = 0b11111
|
||||
}
|
||||
|
||||
func (self *Loop) MouseTrackingMode(mt MouseTracking) *Loop {
|
||||
self.terminal_options.mouse_tracking = mt
|
||||
return self
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user