(&mut self)
| 96 | } |
| 97 | |
| 98 | fn enter_alt(&mut self) -> io::Result<()> { |
| 99 | if self.alt_backup.is_some() { |
| 100 | return Err(io::Error::new( |
| 101 | io::ErrorKind::InvalidInput, |
| 102 | "Cannot nest alternate screens", |
| 103 | )); |
| 104 | } |
| 105 | |
| 106 | self.alt_backup = Some((self.fg_color, self.bg_color)); |
| 107 | |
| 108 | self.call(Request::EnterAlt) |
| 109 | } |
| 110 | |
| 111 | fn hide_cursor(&mut self) -> io::Result<()> { |
| 112 | self.call(Request::HideCursor) |