alacritty/alacritty_terminal/src
Christian Duerr 9974bc8baa
Fix cursor reflow
To make sure that output is consistent even while resizing the window,
the cursor will now reflow with the content whenever the window size is
changed.

Since the saved cursor is more likely to represent a position in the
grid rather than a reference to the content below it and handling of
resize before jumping back to it is more likely than with the primary
cursor, no reflow is performed for the saved cursor

The primary cursor is unfortunately always reflowed automatically by
shells like zsh, which has always caused problems like duplicating parts
of the prompt and stretching it out "infinitely". Since the cursor is
now reflowed appropriately the duplication of the shell prompt should be
reduced, however it is possible that the shell moves the cursor up one
line after it has already been reflowed, which will cause a line of
history to be deleted if there is no duplicated prompt line above the
reflowed prompt. Since this behavior is identical in VTE and Kitty, no
attempt is made to work around it in this patch.

Fixes #3584.
2020-07-09 05:16:20 +03:00
..
config Remove copyright notice from files 2020-06-06 21:49:14 +03:00
grid Fix cursor reflow 2020-07-09 05:16:20 +03:00
term Fix saved cursor handling 2020-07-06 19:10:06 +00:00
tty Remove copyright notice from files 2020-06-06 21:49:14 +03:00
ansi.rs Document supported escape sequences 2020-07-03 20:27:18 +00:00
event.rs Add automatic scrolling during selection 2020-06-18 01:02:56 +00:00
event_loop.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
index.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
lib.rs Remove copypasta dependency from alacritty_terminal 2020-06-07 00:33:20 +03:00
locale.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
message_bar.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
meter.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
panic.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
selection.rs Clear selection on clear line/screen escapes 2020-06-26 16:04:55 +00:00
sync.rs Remove copyright notice from files 2020-06-06 21:49:14 +03:00
util.rs Add automatic scrolling during selection 2020-06-18 01:02:56 +00:00
vi_mode.rs Remove copypasta dependency from alacritty_terminal 2020-06-07 00:33:20 +03:00