Function coded_chars::control::presentation::select_graphic
source · pub fn select_graphic() -> GraphicSelectionExpand 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::control::presentation::select_graphic;
println!("Hello {}{}{} !", select_graphic().fg_red().bold().underline(), "World", select_graphic().default());