Move roundtrip on exit flag into terminal options to have a consistent API

This commit is contained in:
Kovid Goyal
2026-04-10 15:37:20 +05:30
parent 3fe884a29a
commit 01055d36b0
4 changed files with 19 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error)
}
if io_data.on_key_event != nil {
lp.FullKeyboardProtocol()
lp.NoRoundtripToTerminalOnExit = false
lp.NoRoundtripToTerminalOnExit()
} else {
lp.NoKeyboardStateChange()
}