pub fn restore_colour(fgbg: XG)
Expand description

Restores the colour from the state. set_colour will set the state and use colour will not.

Example

use term_basics_linux as tbl;
tbl::set_colour(tbl::UC::Red, tbl::XG::FG);
tbl::println("this is red");
tbl::use_colour(tbl::UC::Green, tbl::XG::FG);
tbl::println("this is green");
tbl::restore_colour(tbl::XG::FG);
tbl::println("this is red again");