Reports an interrupt triggered by the user.
(&mut self)
| 257 | |
| 258 | /// Reports an interrupt triggered by the user. |
| 259 | fn do_interrupt(&mut self) -> io::Result<DispatchResult> { |
| 260 | Err(io::Error::new(io::ErrorKind::Interrupted, "Ctrl+C")) |
| 261 | } |
| 262 | |
| 263 | /// Moves the cursor to a new position, scrolling if needed. |
| 264 | fn do_move_to(&mut self, new_pos: usize) -> io::Result<DispatchResult> { |