1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00
alacritty/src
Nathan Lilienthal 72495172c2 Implement ansi::ClearMode::Saved
The clearing the screen for the `ansi::ClearMode::Saved` enum value
has been implemented. This is used to clear all lines which are
currently outside of the visible region but still inside the scrollback
buffer.

The specifications of XTerm indicate that the clearing of saved lines
should only clear the saved lines and not the saved lines plus the
currently visible part of the grid. Applications like `clear` send both
the escape for clearing history plus the escape for clearing history
when requested, so all sources seem to agree here.

To allow both clearing the screen and the saved lines when a key is
pressed the `process_key_bindings` method has been altered so multiple
bindings can be specified. So it is now possible to execute both `^L`
and `ClearHistory` with just a single binding. The
`process_mouse_bindings` method has also been changed for consistency.

To make sure everything works properly a test has been added which
clears the history and then attempts to scroll. Since scrolling is the
only way for a user to check if scrollback is available, this seems like
a nice abstraction to check if there is a scrollback.
2018-09-02 00:30:03 +00:00
..
grid Implement ansi::ClearMode::Saved 2018-09-02 00:30:03 +00:00
renderer Scrollback cleanup 2018-07-21 17:17:41 +00:00
term Implement ansi::ClearMode::Saved 2018-09-02 00:30:03 +00:00
ansi.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
cli.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
config.rs Implement ansi::ClearMode::Saved 2018-09-02 00:30:03 +00:00
display.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
event.rs Implement ansi::ClearMode::Saved 2018-09-02 00:30:03 +00:00
event_loop.rs Rework auto-scrolling options 2018-06-02 09:56:50 -07:00
index.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
input.rs Implement ansi::ClearMode::Saved 2018-09-02 00:30:03 +00:00
lib.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
locale.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
logging.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
macros.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
main.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
meter.rs Remove all instances of unwrap() from config 2018-03-04 22:40:15 +00:00
selection.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
sync.rs Fix some compiler warnings 2016-09-23 10:12:11 -07:00
tty.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
util.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
window.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00