mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
72495172c2
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. |
||
---|---|---|
.. | ||
grid | ||
renderer | ||
term | ||
ansi.rs | ||
cli.rs | ||
config.rs | ||
display.rs | ||
event.rs | ||
event_loop.rs | ||
index.rs | ||
input.rs | ||
lib.rs | ||
locale.rs | ||
logging.rs | ||
macros.rs | ||
main.rs | ||
meter.rs | ||
selection.rs | ||
sync.rs | ||
tty.rs | ||
util.rs | ||
window.rs |