mirror of https://github.com/bobwen-dev/hunter
fix order of raw/alternate screen calls
This commit is contained in:
parent
143e20f6b9
commit
7d08e6b064
|
@ -87,13 +87,13 @@ pub trait ScreenExt: Write {
|
||||||
fn activate_raw_mode(&mut self) -> HResult<()>;
|
fn activate_raw_mode(&mut self) -> HResult<()>;
|
||||||
fn suspend(&mut self) -> HResult<()> {
|
fn suspend(&mut self) -> HResult<()> {
|
||||||
self.cursor_show().log();
|
self.cursor_show().log();
|
||||||
self.to_main_screen().log();
|
self.suspend_raw_mode().log();
|
||||||
self.suspend_raw_mode()
|
self.to_main_screen()
|
||||||
}
|
}
|
||||||
fn activate(&mut self) -> HResult<()> {
|
fn activate(&mut self) -> HResult<()> {
|
||||||
self.cursor_hide().log();
|
self.cursor_hide().log();
|
||||||
self.to_alternate_screen().log();
|
self.activate_raw_mode().log();
|
||||||
self.activate_raw_mode()
|
self.to_alternate_screen()
|
||||||
}
|
}
|
||||||
fn cursor_hide(&mut self) -> HResult<()> {
|
fn cursor_hide(&mut self) -> HResult<()> {
|
||||||
write!(self, "{}", termion::cursor::Hide)?;
|
write!(self, "{}", termion::cursor::Hide)?;
|
||||||
|
|
Loading…
Reference in New Issue