select_graphic

Function select_graphic 

Source
pub fn select_graphic() -> GraphicSelection
Expand description

§SGR - Select graphic rendition

SGR is used to establish one or more graphic rendition aspects for subsequent text. The established aspects remain in effect until the next occurrence of SGR in the data stream, depending on the setting of the GRAPHIC RENDITION COMBINATION MODE (GRCM).

§Example


// Direct format
use coded_chars::presentation::select_graphic;
println!("Hello {}{}{} !", select_graphic().fg_red().bold().underline(), "World", select_graphic().default());