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

Method print

std/src/console/graphics.rs:637–647  ·  view source on GitHub ↗
(&mut self, text: &str)

Source from the content-addressed store, hash-verified

635 }
636
637 fn print(&mut self, text: &str) -> io::Result<()> {
638 let text = remove_control_chars(text);
639
640 let previous = self.set_sync(false)?;
641 self.clear_cursor()?;
642 self.raw_write_wrapped(text)?;
643 self.open_line()?;
644 self.draw_cursor()?;
645 self.set_sync(previous)?;
646 Ok(())
647 }
648
649 async fn poll_key(&mut self) -> io::Result<Option<Key>> {
650 self.input_ops.poll_key().await

Callers

nothing calls this directly

Calls 6

remove_control_charsFunction · 0.85
clear_cursorMethod · 0.80
raw_write_wrappedMethod · 0.80
open_lineMethod · 0.80
draw_cursorMethod · 0.80
set_syncMethod · 0.45

Tested by

no test coverage detected