mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
LibVT+Kernel: Support clearing the scrollback buffer
As per the `xterm ctlseqs` documentation, `\e3J` should clear the scrollback buffer, and leave the visible lines unchanged. This commit fixes a FIXME.
This commit is contained in:
parent
221ba1aac8
commit
8f8fd9c5a8
4 changed files with 14 additions and 11 deletions
|
@ -74,12 +74,18 @@ public:
|
|||
|
||||
void set_cursor(unsigned row, unsigned column, bool skip_debug = false);
|
||||
|
||||
void clear_including_history()
|
||||
{
|
||||
clear_history();
|
||||
clear();
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
void clear();
|
||||
void clear_including_history();
|
||||
void clear_history();
|
||||
#else
|
||||
virtual void clear() = 0;
|
||||
virtual void clear_including_history() = 0;
|
||||
virtual void clear_history() = 0;
|
||||
#endif
|
||||
|
||||
#ifndef KERNEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue