Function term_basics_linux::restore_style [−][src]
pub fn restore_style()Expand description
Restores the style from the state.
The state is set after calls like set_style
Usually you restore it after a call like use_style.
Example
use term_basics_linux as tbl;
tbl::set_style(tbl::TextStyle::Bold);
tbl::println("this is bold");
tbl::use_style(tbl::TextStyle::Crossed);
tbl::println("this is crossed");
tbl::restore_style();
tbl::println("this is bold again");