[][src]Function term_basics_linux::set_colours

pub fn set_colours(fg: UserColour, bg: UserColour)

Sets both foreground and background colours. It will print linux colour escape characters to std out. It will set the state.

Example

use term_basics_linux as tbl;
for fg in tbl::UserColour::iterator(){
    for bg in tbl::UserColour::iterator(){
        tbl::set_colours(fg.clone(), bg.clone());
        println!("haha yes");
    }
}