1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

Kernel: Give each TTY 1 KB of input buffer

This papers over an immediate issue where pseudoterminals would choke
on more than 16 characters of pasted input in the GUI terminal.

Longer-term we should find a more elegant solution than using a static
size CircularQueue for this.
This commit is contained in:
Andreas Kling 2019-08-23 18:54:03 +02:00
parent 32810a920f
commit 5768b384b9

View file

@ -47,7 +47,7 @@ private:
// ^CharacterDevice
virtual bool is_tty() const final override { return true; }
CircularQueue<u8, 16> m_input_buffer;
CircularQueue<u8, 1024> m_input_buffer;
pid_t m_pgid { 0 };
termios m_termios;
unsigned short m_rows { 0 };