mirror of
https://github.com/alacritty/alacritty.git
synced 2025-10-30 23:36:53 -04:00
Reset grid content when running reset
In the current scrollback PR the `reset` command does not affect the scrollback history. To make sure the terminal is properly reset, it should clear the scrollback history. This commit fixes this by creating a new and empty grid whenever `reset` is executed. It takes the current dimensions and history size from the old grid. Right now there's an empty ref-test called `grid_reset` without any content, this should be implemented once #1244 is resolved. This fixes #1242.
This commit is contained in:
parent
2234234ca9
commit
d39370514a
8 changed files with 50010 additions and 4 deletions
50002
tests/ref/grid_reset/alacritty.recording
Normal file
50002
tests/ref/grid_reset/alacritty.recording
Normal file
File diff suppressed because it is too large
Load diff
1
tests/ref/grid_reset/grid.json
Normal file
1
tests/ref/grid_reset/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
tests/ref/grid_reset/size.json
Normal file
1
tests/ref/grid_reset/size.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"width":1259.0,"height":1380.0,"cell_width":10.0,"cell_height":19.0,"padding_x":5.0,"padding_y":5.0}
|
||||
Loading…
Add table
Add a link
Reference in a new issue