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

Method set_color

sdl/src/console.rs:91–96  ·  view source on GitHub ↗
(&mut self, fg: Option<u8>, bg: Option<u8>)

Source from the content-addressed store, hash-verified

89 }
90
91 fn set_color(&mut self, fg: Option<u8>, bg: Option<u8>) -> io::Result<()> {
92 self.call(Request::SetColor(fg, bg))?;
93 self.fg_color = fg;
94 self.bg_color = bg;
95 Ok(())
96 }
97
98 fn enter_alt(&mut self) -> io::Result<()> {
99 if self.alt_backup.is_some() {

Calls 1

callMethod · 0.80