diff --git a/README.md b/README.md index fee19f51..6409c451 100644 --- a/README.md +++ b/README.md @@ -212,11 +212,6 @@ running on another machine which is connected to Alacritty via SSH, this issue disappears. Actual throughput and rendering performance are still better in Alacritty. -**_My arrow keys don't work._** - -It sounds like you deleted some key bindings from your config file. Please -reference the default config file to restore them. - ## IRC Alacritty discussion can be found in `#alacritty` on freenode. @@ -235,6 +230,4 @@ env WINIT_UNIX_BACKEND=x11 alacritty Alacritty is released under the [Apache License, Version 2.0]. [Apache License, Version 2.0]: https://github.com/jwilm/alacritty/blob/master/LICENSE-APACHE -[faq]: https://github.com/jwilm/alacritty#faq [tmux]: https://github.com/tmux/tmux -[Wayland meta issue]: https://github.com/tomaka/winit/issues/306 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(config: &Config, size: &SizeInfo, _window_id: Option) -> 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?")); } } }