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

Method color

std/src/testutils.rs:243–250  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

241 }
242
243 fn color(&self) -> (Option<u8>, Option<u8>) {
244 for o in self.captured_out.iter().rev() {
245 if let CapturedOut::SetColor(fg, bg) = o {
246 return (*fg, *bg);
247 }
248 }
249 (None, None)
250 }
251
252 fn set_color(&mut self, fg: Option<u8>, bg: Option<u8>) -> io::Result<()> {
253 self.captured_out.push(CapturedOut::SetColor(fg, bg));

Callers

nothing calls this directly

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected