Skip to main content

ansi_print

Function ansi_print 

Source
pub fn ansi_print(sequence: &[u8]) -> IoResult<()>
Available on crate features linux or std only.
Expand description

๐Ÿฎ– ๐Ÿ–ฅ๏ธ A function to print an ANSI escape sequence of bytes to stdout


๐Ÿ“ sys/os/term


It abstracts away specific backend implementations.

ยงExamples

ansi_print(&Ansi::ERASE_SCREEN_B);
ansi_print(&Ansi::CURSOR_MOVE3_B(120, 80));
ansi_print(&Ansi::COLORS_BRIGHT_BG_B(AnsiColor3::Blue, AnsiColor3::Black));

See also the ansi! macro.