Function term_basics_linux::restore_colours
source · pub fn restore_colours()
Expand description
Restores all colours from state.
It is used after a call like use_colour
to get back to the old colours.
Example
use term_basics_linux as tbl;
tbl::set_colours(tbl::UC::Green, tbl::UC::Magenta);
tbl::println("cool and good");
tbl::use_colours(tbl::UC::Red, tbl::UC::Black);
tbl::println("warm and bad");
tbl::restore_colours();
tbl::println("cool and good again");