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

Method locate

std/src/console/graphics.rs:612–622  ·  view source on GitHub ↗
(&mut self, pos: CharsXY)

Source from the content-addressed store, hash-verified

610 }
611
612 fn locate(&mut self, pos: CharsXY) -> io::Result<()> {
613 debug_assert!(pos.x < self.size_chars.x);
614 debug_assert!(pos.y < self.size_chars.y);
615
616 let previous = self.set_sync(false)?;
617 self.clear_cursor()?;
618 self.cursor_pos = pos;
619 self.draw_cursor()?;
620 self.set_sync(previous)?;
621 Ok(())
622 }
623
624 fn move_within_line(&mut self, off: i16) -> io::Result<()> {
625 let previous = self.set_sync(false)?;

Callers

nothing calls this directly

Calls 3

clear_cursorMethod · 0.80
draw_cursorMethod · 0.80
set_syncMethod · 0.45

Tested by

no test coverage detected