From f88153f62b024d1c2ef82c5ac7ae9002e4fe2967 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 27 Oct 2019 13:33:47 -0400 Subject: add terminal resizing functionality to keep the process's pty size in sync with the size of the user's terminal --- src/process.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/process.rs') diff --git a/src/process.rs b/src/process.rs index ed3344c..f5c76ed 100644 --- a/src/process.rs +++ b/src/process.rs @@ -20,6 +20,9 @@ pub enum Event { /// Emitted when the command has exited. CommandExit { status: std::process::ExitStatus }, + + /// Emitted by a `ResizingProcess` when a resize event happens + Resize { size: (u16, u16) }, } struct State { @@ -354,6 +357,7 @@ mod test { assert!(status.success()); exited = true; } + Event::Resize { .. } => {} } } assert!(exited); -- cgit v1.2.3-54-g00ecf