Add clear and sb_reset

Clearing the terminal removes all lines in the scrollback buffer except
for the most recent.

With sb_reset, the terminal will return the scrollback buffer to the
bottom when the user starts typing if they have previously scrolled up.
This commit is contained in:
Leroy Hopson 2021-07-13 06:27:20 +07:00
parent ebb527cb8b
commit e8c27f2796
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
5 changed files with 40 additions and 12 deletions

View file

@ -57,6 +57,8 @@ public:
void sb_up(int num);
void sb_down(int num);
void sb_reset();
void clear_sb();
void start_selection(Vector2 position);
void select_to_pointer(Vector2 position);