Remove outdated information from README

This commit is contained in:
Kirill Chibisov 2019-12-30 01:48:27 +03:00 committed by Christian Duerr
parent 9da0c042d4
commit d4dc1f7b14
2 changed files with 1 additions and 14 deletions

View File

@ -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 disappears. Actual throughput and rendering performance are still better in
Alacritty. 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 ## IRC
Alacritty discussion can be found in `#alacritty` on freenode. 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]. Alacritty is released under the [Apache License, Version 2.0].
[Apache License, Version 2.0]: https://github.com/jwilm/alacritty/blob/master/LICENSE-APACHE [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 [tmux]: https://github.com/tmux/tmux
[Wayland meta issue]: https://github.com/tomaka/winit/issues/306

View File

@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
use std::fs::OpenOptions; use std::fs::OpenOptions;
use std::io;
use std::os::windows::fs::OpenOptionsExt; use std::os::windows::fs::OpenOptionsExt;
use std::os::windows::io::{FromRawHandle, IntoRawHandle}; use std::os::windows::io::{FromRawHandle, IntoRawHandle};
use std::u16; use std::u16;
@ -32,17 +31,12 @@ use crate::tty::windows::Pty;
pub use winpty::Winpty as Agent; 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 { pub fn new<C>(config: &Config<C>, size: &SizeInfo, _window_id: Option<usize>) -> Pty {
// Create config // Create config
let mut wconfig = WinptyConfig::new(ConfigFlags::empty()).unwrap(); let mut wconfig = WinptyConfig::new(ConfigFlags::empty()).unwrap();
wconfig.set_initial_size(size.cols().0 as i32, size.lines().0 as i32); wconfig.set_initial_size(size.cols().0 as i32, size.lines().0 as i32);
wconfig.set_mouse_mode(&MouseMode::Auto); wconfig.set_mouse_mode(&MouseMode::Auto);
wconfig.set_agent_timeout(AGENT_TIMEOUT);
// Start agent // Start agent
let mut agent = Winpty::open(&wconfig).unwrap(); let mut agent = Winpty::open(&wconfig).unwrap();
@ -101,7 +95,7 @@ impl OnResize for Agent {
let (cols, lines) = (sizeinfo.cols().0, sizeinfo.lines().0); let (cols, lines) = (sizeinfo.cols().0, sizeinfo.lines().0);
if cols > 0 && cols <= u16::MAX as usize && lines > 0 && lines <= u16::MAX as usize { if cols > 0 && cols <= u16::MAX as usize && lines > 0 && lines <= u16::MAX as usize {
self.set_size(cols as u16, lines as u16) 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?"));
} }
} }
} }