diff options
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r-- | src/event_loop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs index 9f02118f..30732e2a 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -251,7 +251,7 @@ impl<Io> EventLoop<Io> ) -> io::Result<()> where W: Write { - const MAX_READ: usize = 65_536; + const MAX_READ: usize = 0x1_0000; let mut processed = 0; let mut terminal = None; @@ -350,7 +350,7 @@ impl<Io> EventLoop<Io> ) -> thread::JoinHandle<(EventLoop<Io>, State)> { thread::spawn_named("pty reader", move || { let mut state = state.unwrap_or_else(Default::default); - let mut buf = [0u8; 4096]; + let mut buf = [0u8; 0x1000]; let fd = self.pty.as_raw_fd(); let fd = EventedFd(&fd); |