diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-14 13:07:26 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-14 13:07:26 -0500 |
commit | c8bcf801171782819d93a5dace5cd516fc727538 (patch) | |
tree | 5e89b0faddda2edb570df50286470575fde7003c /src/tui.rs | |
parent | a999fabab296a10b4586d18a93da322572d9578d (diff) | |
download | nbsh-old-c8bcf801171782819d93a5dace5cd516fc727538.tar.gz nbsh-old-c8bcf801171782819d93a5dace5cd516fc727538.zip |
Diffstat (limited to 'src/tui.rs')
-rw-r--r-- | src/tui.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -12,7 +12,7 @@ enum Error { "failed to put the terminal into raw mode: {}", source ))] - IntoRawMode { source: std::io::Error }, + IntoRawMode { source: crossterm::ErrorKind }, #[snafu(display("error during read: {}", source))] Read { source: crate::readline::Error }, @@ -38,7 +38,7 @@ pub struct Tui { idx: usize, readline: Option<crate::readline::Readline>, commands: std::collections::HashMap<usize, Command>, - raw_screen: Option<crossterm::RawScreen>, + raw_screen: Option<crossterm::screen::RawScreen>, } impl Tui { @@ -218,7 +218,8 @@ impl Tui { fn poll_with_errors(&mut self) -> futures::Poll<(), Error> { if self.raw_screen.is_none() { self.raw_screen = Some( - crossterm::RawScreen::into_raw_mode().context(IntoRawMode)?, + crossterm::screen::RawScreen::into_raw_mode() + .context(IntoRawMode)?, ); } |