Skip to content

Commit

Permalink
Remove extra TIOCSWINSZ ioctl on startup
Browse files Browse the repository at this point in the history
The openpty call already performs it, thus no need to call it one more
with the exact same size since it confuses some applications.
  • Loading branch information
kchibisov authored Feb 8, 2024
1 parent 63bcc1e commit 117719b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions alacritty_terminal/src/tty/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ pub fn new(config: &Options, window_size: WindowSize, window_id: u64) -> Result<
set_nonblocking(master_fd);
}

let mut pty = Pty { child, file: File::from(master), signals };
pty.on_resize(window_size);
Ok(pty)
Ok(Pty { child, file: File::from(master), signals })
},
Err(err) => Err(Error::new(
err.kind(),
Expand Down

0 comments on commit 117719b

Please sign in to comment.