[−][src]Function term_basics_linux::restore_colours
pub fn restore_colours()
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::UserColour::Green, tbl::UserColour::Magenta); tbl::println("cool and good"); tbl::use_colours(tbl::UserColour::Red, tbl::UserColour::Black); tbl::println("warm and bad"); tbl::restore_colours(); tbl::println("cool and good again");