MCPcopy Index your code
hub / github.com/endbasic/endbasic / do_interrupt

Method do_interrupt

std/src/console/readline.rs:259–261  ·  view source on GitHub ↗

Reports an interrupt triggered by the user.

(&mut self)

Source from the content-addressed store, hash-verified

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> {

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected