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.