1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 21:01:36 +03:00

fixup build for pty api change

This commit is contained in:
Wez Furlong 2022-08-12 08:45:02 -07:00
parent 53febb14ff
commit 517cdc9c1b
2 changed files with 1 additions and 19 deletions

View File

@ -908,24 +908,6 @@ struct PtyWriter {
rx: Receiver<BoxedWriter>,
}
impl std::io::Write for WrappedSshPty {
fn write(&mut self, _buf: &[u8]) -> std::io::Result<usize> {
log::error!("boo");
Err(std::io::Error::new(
std::io::ErrorKind::Other,
"you are expected to write via try_clone_writer",
))
}
fn flush(&mut self) -> std::io::Result<()> {
log::error!("boo");
Err(std::io::Error::new(
std::io::ErrorKind::Other,
"you are expected to write via try_clone_writer",
))
}
}
impl WrappedSshPtyInner {
fn check_connected(&mut self) -> anyhow::Result<()> {
match self {

View File

@ -147,7 +147,7 @@ fn main() {
// Need to separate out the writer so that we can drop
// the pty which would otherwise keep the ssh session
// thread alive
let mut writer = pty.try_clone_writer()?;
let mut writer = pty.take_writer()?;
std::thread::spawn(move || {
let mut buf = [0u8; 8192];
let mut stdin = std::io::stdin();