Skip to content

Commit

Permalink
Document why we explicitly turn off in band resize
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 19, 2024
1 parent 5955284 commit 4cb1901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tui/loop/terminal-state.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ func (self *TerminalStateOptions) ResetStateEscapeCodes() string {
} else {
sb.WriteString(SAVE_CURSOR)
}
// Explictly turn off this mode as there are some terminals that dont
// support restoring all modes and people tend to use the show-key kitten
// in other terminals. Since I do want to encourage adoption of the kitty
// keyboard protocol, the extra bytes are worth it in this case.
if self.in_band_resize_notification {
reset_modes(&sb, INBAND_RESIZE_NOTIFICATION)
}
Expand Down

0 comments on commit 4cb1901

Please sign in to comment.