Function term_basics_linux::set_style[][src]

pub fn set_style(sty: TextStyle)

Sets the style of the text printed after this call. It will print linux colour escape characters to std out. It will also set the state.

Example

use term_basics_linux as tbl;
for i in tbl::TextStyle::iterator(){
    tbl::set_style(i.clone());
    println!("haha yes");
}