Bad cursor position when terminal is resized while in alternate mode #1512
Labels
bug
Something isn't working
fixed-in-nightly
This is (or is assumed to be) fixed in the nightly builds.
What Operating System(s) are you seeing this problem on?
Linux X11
WezTerm version
20220105-201556-91a423da
(built from source, up to date)
Describe the bug
The terminal isn't restored into a consistent state on leaving alternate mode when it was resized while in alternate. It looks like the new line with the prompt and the cursor isn't at a proper location.
Before launching neovim:
After resizing and leaving neovim:
(
:e
is the shortcut I used to launch neovim)To Reproduce
Expected Behavior
The terminal should be restored with a consistent state, no text line written below the cursor's line.
Logs
10:02:36~/dev/wezterm target/release/wezterm
2022-01-06T09:02:37.625Z INFO wezterm_mux_server_impl::local > setting up /run/user/1000/wezterm/gui-sock-23697
2022-01-06T09:02:37.722Z INFO wezterm_gui::termwindow > OpenGL initialized! GeForce GTX 670/PCIe/SSE2 4.6.0 NVIDIA 418.211.00 is_context_loss_possible=false wezterm version: 20220105-201556-91a423da
2022-01-06T09:02:49.653Z WARN wezterm_term::terminalstate > unhandled DecPrivateMode SetDecPrivateMode(Unspecified(1015))
2022-01-06T09:02:49.653Z WARN wezterm_term::terminalstate > unhandled DecPrivateMode ResetDecPrivateMode(Unspecified(1015))
Anything else?
This bug appears in some other terminals (for example Kitty) but neither in Gnome's terminal nor in Terminator.
The text was updated successfully, but these errors were encountered: