diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-06 19:34:18 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-06 19:34:18 +0000 |
| commit | 1fa23e6fa4635a61a64ab0f53da1455c72b405d8 (patch) | |
| tree | 789be804ce4bdae3f9da02bdabea7322c6179bdb /src/os_input_output.rs | |
| parent | A module rename to please clippy (diff) | |
| download | sl0ppij-1fa23e6fa4635a61a64ab0f53da1455c72b405d8.tar.gz sl0ppij-1fa23e6fa4635a61a64ab0f53da1455c72b405d8.tar.xz sl0ppij-1fa23e6fa4635a61a64ab0f53da1455c72b405d8.zip | |
Get clipped, fool
Diffstat (limited to 'src/os_input_output.rs')
| -rw-r--r-- | src/os_input_output.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_input_output.rs b/src/os_input_output.rs index 89ba6c72..41ee3b3c 100644 --- a/src/os_input_output.rs +++ b/src/os_input_output.rs @@ -75,6 +75,7 @@ fn handle_command_exit(mut child: Child) { } for signal in signals.pending() { + // FIXME: We need to handle more signals here! match signal { signal_hook::SIGINT => { child.kill().unwrap(); @@ -141,7 +142,7 @@ pub struct OsInputOutput { pub trait OsApi: Send + Sync { fn get_terminal_size_using_fd(&self, pid: RawFd) -> PositionAndSize; fn set_terminal_size_using_fd(&mut self, pid: RawFd, cols: u16, rows: u16); - fn into_raw_mode(&mut self, pid: RawFd); + fn set_raw_mode(&mut self, pid: RawFd); fn unset_raw_mode(&mut self, pid: RawFd); fn spawn_terminal(&mut self, file_to_open: Option<PathBuf>) -> (RawFd, RawFd); fn read_from_tty_stdout(&mut self, pid: RawFd, buf: &mut [u8]) -> Result<usize, nix::Error>; @@ -160,7 +161,7 @@ impl OsApi for OsInputOutput { fn set_terminal_size_using_fd(&mut self, pid: RawFd, cols: u16, rows: u16) { set_terminal_size_using_fd(pid, cols, rows); } - fn into_raw_mode(&mut self, pid: RawFd) { + fn set_raw_mode(&mut self, pid: RawFd) { into_raw_mode(pid); } fn unset_raw_mode(&mut self, pid: RawFd) { |
