[][src]Function term_basics_linux::restore_colour

pub fn restore_colour(fgbg: FGBG)

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::UserColour::Red, tbl::FGBG::FG);
tbl::println("this is red");
tbl::use_colour(tbl::UserColour::Green, tbl::FGBG::FG);
tbl::println("this is green");
tbl::restore_colour(tbl::FGBG::FG);
tbl::println("this is red again");