Also resize pty

This commit is contained in:
2023-11-06 23:05:32 +01:00
parent 20757a093b
commit b7a5d83faa
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -658,6 +658,11 @@ impl Tile {
self.outer_size = (w, h);
self.inner_size = (w - 4, h - 5);
if let Some(pty) = self.pty.as_mut() {
pty.resize(pty_process::Size::new(self.inner_size.1, self.inner_size.0))
.unwrap();
}
let old_stdout = std::mem::replace(&mut self.stdout, vec![String::new()]);
for s in old_stdout {
self.push_stdout(s);