From 5768b384b91b80b49a6bac65a4e9897717ab0436 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 23 Aug 2019 18:54:03 +0200 Subject: [PATCH] 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. --- Kernel/TTY/TTY.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/TTY/TTY.h b/Kernel/TTY/TTY.h index c4a23a1adb..55768b0f72 100644 --- a/Kernel/TTY/TTY.h +++ b/Kernel/TTY/TTY.h @@ -47,7 +47,7 @@ private: // ^CharacterDevice virtual bool is_tty() const final override { return true; } - CircularQueue m_input_buffer; + CircularQueue m_input_buffer; pid_t m_pgid { 0 }; termios m_termios; unsigned short m_rows { 0 };