Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
5768b384b9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Kernel/TTY/TTY.h

+ 1 - 1
Kernel/TTY/TTY.h

@@ -47,7 +47,7 @@ private:
     // ^CharacterDevice
     // ^CharacterDevice
     virtual bool is_tty() const final override { return true; }
     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 };
     pid_t m_pgid { 0 };
     termios m_termios;
     termios m_termios;
     unsigned short m_rows { 0 };
     unsigned short m_rows { 0 };