1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

VirtualConsole: Support the 'A' and 'D' CSI sequences.

This makes backspace work correctly when line editing with bash-2.05b.
This commit is contained in:
Andreas Kling 2018-12-07 01:19:02 +01:00
parent a8c7b6ce86
commit 4f6438ec66
5 changed files with 47 additions and 7 deletions

View file

@ -29,6 +29,8 @@ public:
bool should_echo_input() const { return m_termios.c_lflag & ECHO; }
bool in_canonical_mode() const { return m_termios.c_lflag & ICANON; }
void set_default_termios();
protected:
virtual void on_tty_write(const byte*, size_t) = 0;
void set_size(unsigned short columns, unsigned short rows);