1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:17:34 +00:00

Terminal: Try to preserve line contents when resizing the terminal window.

This is still destructive when shrinking, but clearly better than throwing
everything away.
This commit is contained in:
Andreas Kling 2019-07-08 19:01:02 +02:00
parent 4d904340b4
commit 2c81477f16
2 changed files with 12 additions and 8 deletions

View file

@ -212,10 +212,10 @@ private:
u16 m_columns { 0 };
u16 m_rows { 0 };
u8 m_cursor_row { 0 };
u8 m_cursor_column { 0 };
u8 m_saved_cursor_row { 0 };
u8 m_saved_cursor_column { 0 };
u16 m_cursor_row { 0 };
u16 m_cursor_column { 0 };
u16 m_saved_cursor_row { 0 };
u16 m_saved_cursor_column { 0 };
bool m_stomp { false };
bool m_should_beep { false };