MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / write_str

Method write_str

src/graphics/vga/mod.rs:694–705  ·  view source on GitHub ↗

Write string

(&mut self, s: &str)

Source from the content-addressed store, hash-verified

692{
693 // Write string
694 fn write_str(&mut self, s: &str) -> fmt::Result
695 {
696 let mut parser = PARSER.lock();
697 for byte in s.bytes()
698 {
699 parser.advance(self, byte);
700 }
701
702 let (x, y) = self.wpos();
703 self.cpos_set(x, y);
704 Ok(())
705 }
706}
707
708// Can print

Callers

nothing calls this directly

Calls 3

lockMethod · 0.80
wposMethod · 0.80
cpos_setMethod · 0.80

Tested by

no test coverage detected