aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-27 13:33:47 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-27 15:37:32 -0400
commitf88153f62b024d1c2ef82c5ac7ae9002e4fe2967 (patch)
treef5d9485a0e06072a22e8ae9e3a2089ee799ec948 /src/lib.rs
parente74e5f1d2a1e091af214e39166b6a17d9052325c (diff)
downloadtokio-pty-process-stream-f88153f62b024d1c2ef82c5ac7ae9002e4fe2967.tar.gz
tokio-pty-process-stream-f88153f62b024d1c2ef82c5ac7ae9002e4fe2967.zip
add terminal resizing functionality
to keep the process's pty size in sync with the size of the user's terminal
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4ad3960..9a19ed8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,6 +31,7 @@
//!
//! let process =
//! tokio_pty_process_stream::Process::new(&cmd, &args, Stdin::new());
+//! let process = tokio_pty_process_stream::ResizingProcess::new(process);
//!
//! let _raw = crossterm::RawScreen::into_raw_mode().unwrap();
//! tokio::run(
@@ -49,6 +50,7 @@
//! tokio_pty_process_stream::Event::CommandExit {
//! ..
//! } => {}
+//! tokio_pty_process_stream::Event::Resize { .. } => {}
//! }
//! futures::future::ok(())
//! })
@@ -151,3 +153,5 @@ pub use error::Error;
mod process;
pub use process::Event;
pub use process::Process;
+mod resize;
+pub use resize::ResizingProcess;