diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2019-12-30 01:48:27 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-12-29 22:48:27 +0000 |
commit | d4dc1f7b14e7d8016854ac526c2e1c6024a7ddc1 (patch) | |
tree | 721cc26d197a1853cccf249749d31c9c35277119 /alacritty_terminal | |
parent | 9da0c042d4d4ef72b4488424df5c20d14d4e9585 (diff) |
Remove outdated information from README
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/tty/windows/winpty.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/alacritty_terminal/src/tty/windows/winpty.rs b/alacritty_terminal/src/tty/windows/winpty.rs index 4ab4d059..0d2421b0 100644 --- a/alacritty_terminal/src/tty/windows/winpty.rs +++ b/alacritty_terminal/src/tty/windows/winpty.rs @@ -13,7 +13,6 @@ // limitations under the License. use std::fs::OpenOptions; -use std::io; use std::os::windows::fs::OpenOptionsExt; use std::os::windows::io::{FromRawHandle, IntoRawHandle}; use std::u16; @@ -32,17 +31,12 @@ use crate::tty::windows::Pty; pub use winpty::Winpty as Agent; -/// How long the winpty agent should wait for any RPC request -/// This is a placeholder value until we see how often long responses happen -const AGENT_TIMEOUT: u32 = 10000; - pub fn new<C>(config: &Config<C>, size: &SizeInfo, _window_id: Option<usize>) -> Pty { // Create config let mut wconfig = WinptyConfig::new(ConfigFlags::empty()).unwrap(); wconfig.set_initial_size(size.cols().0 as i32, size.lines().0 as i32); wconfig.set_mouse_mode(&MouseMode::Auto); - wconfig.set_agent_timeout(AGENT_TIMEOUT); // Start agent let mut agent = Winpty::open(&wconfig).unwrap(); @@ -101,7 +95,7 @@ impl OnResize for Agent { let (cols, lines) = (sizeinfo.cols().0, sizeinfo.lines().0); if cols > 0 && cols <= u16::MAX as usize && lines > 0 && lines <= u16::MAX as usize { self.set_size(cols as u16, lines as u16) - .unwrap_or_else(|_| info!("Unable to set winpty size, did it die?")); + .unwrap_or_else(|_| info!("Unable to set WinPTY size, did it die?")); } } } |