Skip to main content

sgr_open

Function sgr_open 

Source
pub fn sgr_open(style: &Style, theme: &Theme, cap: Capability) -> String
Expand description

Emit the ANSI SGR prefix for style under cap. Returns an empty string when the style is plain or the capability is None with no decorations.