diff options
Diffstat (limited to 'alacritty_terminal/src/tty/windows/conpty.rs')
-rw-r--r-- | alacritty_terminal/src/tty/windows/conpty.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/alacritty_terminal/src/tty/windows/conpty.rs b/alacritty_terminal/src/tty/windows/conpty.rs index 2056f3d6..561df71d 100644 --- a/alacritty_terminal/src/tty/windows/conpty.rs +++ b/alacritty_terminal/src/tty/windows/conpty.rs @@ -231,15 +231,7 @@ pub fn new<C>(config: &Config<C>, size: &SizeInfo, _window_id: Option<usize>) -> let child_watcher = ChildExitWatcher::new(proc_info.hProcess).unwrap(); let conpty = Conpty { handle: pty_handle, api }; - Some(Pty { - backend: super::PtyBackend::Conpty(conpty), - conout: super::EventedReadablePipe::Anonymous(conout), - conin: super::EventedWritablePipe::Anonymous(conin), - read_token: 0.into(), - write_token: 0.into(), - child_event_token: 0.into(), - child_watcher, - }) + Some(Pty::new(conpty, conout, conin, child_watcher)) } // Panic with the last os error as message. |