Browse Source

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.
Andreas Kling 6 năm trước cách đây
mục cha
commit
5768b384b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Kernel/TTY/TTY.h

+ 1 - 1
Kernel/TTY/TTY.h

@@ -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 };