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

Method reset_state

std/src/console/mod.rs:403–409  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

401
402impl Clearable for ConsoleClearable {
403 fn reset_state(&self) {
404 let mut console = self.console.borrow_mut();
405 let _ = console.leave_alt();
406 let _ = console.set_color(None, None);
407 let _ = console.show_cursor();
408 let _ = console.set_sync(true);
409 }
410}
411
412/// Checks if a given string has control characters.

Callers

nothing calls this directly

Calls 4

leave_altMethod · 0.45
set_colorMethod · 0.45
show_cursorMethod · 0.45
set_syncMethod · 0.45

Tested by

no test coverage detected