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/error.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index c8fc902..2259015 100644 --- a/src/error.rs +++ b/src/error.rs @@ -22,6 +22,11 @@ pub enum Error { #[snafu(display("failed to resize pty: {}", source))] ResizePty { source: std::io::Error }, + #[snafu(display("failed to poll for terminal resizing: {}", source))] + Resize { + source: tokio_terminal_resize::Error, + }, + /// failed to spawn process #[snafu(display("failed to spawn process for `{}`: {}", cmd, source))] SpawnProcess { cmd: String, source: std::io::Error }, -- cgit v1.2.3-54-g00ecf