This commit is contained in:
Kovid Goyal
2024-08-20 17:27:13 +05:30
parent 6d06415ec5
commit 2ac26b0e6d
5 changed files with 17 additions and 2 deletions

View File

@@ -27,7 +27,11 @@ 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)
// we cant do inbandresize notification as in the --no-response case the
// command can cause a resize and the loop can quit before the notification
// arrives, leading to the notification being sent to whatever is executed
// after us.
lp, err := loop.New(loop.NoAlternateScreen, loop.NoRestoreColors, loop.NoInBandResizeNotifications)
if io_data.on_key_event != nil {
lp.FullKeyboardProtocol()
} else {