[][src]Function term_basics_linux::reset_colours

pub fn reset_colours()

Resets all the colours. It set the foreground and background colours to the standard colours, whatever they may be. This depends on your terminal emulator and or settings like bashrc or zshrc.

Example

use term_basics_linux as tbl;
tbl::set_colours(tbl::UserColour::Magenta, tbl::UserColour::Yellow);
tbl::set_style(tbl::TextStyle::Underlined);
tbl::println("i am magenta on yellow as well as underlined");
tbl::reset_colours();
tbl::println("i am underlined but have standard colours")