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

Method set_color

std/src/console/pager.rs:75–77  ·  view source on GitHub ↗

Sets the console's foreground and background colors to `fg` and `bg`. If any of the colors is `None`, the color is left unchanged.

(&mut self, fg: Option<u8>, bg: Option<u8>)

Source from the content-addressed store, hash-verified

73 ///
74 /// If any of the colors is `None`, the color is left unchanged.
75 pub(crate) fn set_color(&mut self, fg: Option<u8>, bg: Option<u8>) -> io::Result<()> {
76 self.console.set_color(fg, bg)
77 }
78
79 /// Writes `text` to the console, followed by a newline or CRLF pair depending on the needs of
80 /// the console to advance a line.

Callers 15

describeMethod · 0.45
summaryMethod · 0.45
test_help_pagingFunction · 0.45
execMethod · 0.45
reset_stateMethod · 0.45
draw_logo_internalFunction · 0.45
draw_logoFunction · 0.45

Calls

no outgoing calls