pub enum SgrParameter {
Show 46 variants
Reset,
Bold,
Faint,
Italic,
Underline,
Blink,
RapidBlink,
ReverseVideo,
Conceal,
CrossedOut,
PrimaryFont,
AlternativeFont(u64),
Fraktur,
DoubleUnderline,
NormalIntensity,
NotItalicOrBlackletter,
NotUnderlined,
SteadyCursor,
ProportionalSpacing,
NotReversed,
Reveal,
NotCrossedOut,
ForegroundColour(Colour),
BackgroundColour(Colour),
HexForegroundColour(u32),
HexBackgroundColour(u32),
DefaultForegroundColour,
DefaultBackgroundColour,
DisableProportionalSpacing,
Framed,
Encircled,
Overlined,
NotFramedOrEncircled,
NotOverlined,
UnderlineColour(Colour),
HexUnderlineColour(u32),
DefaultUnderlineColour,
IdeogramUnderlineOrRightSideLine,
IdeogramDoubleUnderlineOrDoubleLineOnTheRightSide,
IdeogramOverlineOrLeftSideLine,
IdeogramDoubleOverlineOrDoubleLineOnTheLeftSide,
IdeogramStressMarking,
IdeogramAttributesOff,
Superscript,
Subscript,
NotSuperscriptOrSubscript,
}Expand description
Variants§
Reset
Reset all attributes.
Bold
Bold.
Faint
Faint.
Italic
Italic.
Underline
Underline.
Blink
Blink.
RapidBlink
Rapid blink.
ReverseVideo
Reverse video (note: Wikipedia notes inconsistent behaviour). Also known as “invert.”
Conceal
Conceal / hide text (note: Wikipedia notes lack of wide support).
CrossedOut
Crossed out. Not supported in Terminal.app.
PrimaryFont
Select the primary font.
AlternativeFont(u64)
Select the alternative font at the given index (N-10).
Fraktur
Fraktur/Gothic mode (note: Wikipedia notes lack of wide support).
DoubleUnderline
Double underline. Note: On some systems, this may instead disable
Bold.
NormalIntensity
Normal intensity.
NotItalicOrBlackletter
Not italic or blackletter.
NotUnderlined
Not underlined.
SteadyCursor
Steady cursor (not blinking).
ProportionalSpacing
Proportional spacing. Note: Wikipedia says:
ITU T.61 and T.416, not known to be used on terminals.
NotReversed
Not reversed.
Presumably undoes ReverseVideo, needs testing.
Reveal
Reveal concealed text.
Presumably undoes Conceal, needs testing.
NotCrossedOut
Not crossed out.
ForegroundColour(Colour)
Set foreground colour to the given colour.
BackgroundColour(Colour)
Set background colour to the given colour.
HexForegroundColour(u32)
Set the foreground colour to the given hex colour.
HexBackgroundColour(u32)
Set the background colour to the given hex colour.
DefaultForegroundColour
Presumably resets to the default foreground colour, needs testing.
DefaultBackgroundColour
Presumably resets to the default background colour, needs testing.
DisableProportionalSpacing
Disable proportional spacing.
Framed
Set the framing (encircled) attribute.
Encircled
Set the encircled attribute.
Overlined
Set the overlined attribute.
Note: Not supported in Terminal.app.
Note: On some systems, this may instead enable Bold.
NotFramedOrEncircled
Not framed or encircled.
NotOverlined
Not overlined.
UnderlineColour(Colour)
Set the underline colour. Note: Not in standard, implemented in Kitty, VTE, mintty, iTerm2.
HexUnderlineColour(u32)
Set the underline colour to the given hex colour. Note: Not in standard, implemented in Kitty, VTE, mintty, iTerm2.
DefaultUnderlineColour
Set the underline colour to the default. Note: Not in standard, implemented in Kitty, VTE, mintty, iTerm2.
IdeogramUnderlineOrRightSideLine
Ideogram underline or right side line.
IdeogramDoubleUnderlineOrDoubleLineOnTheRightSide
Ideogram double underline or double line on the right side.
IdeogramOverlineOrLeftSideLine
Ideogram overline or left side line.
IdeogramDoubleOverlineOrDoubleLineOnTheLeftSide
Ideogram double overline or double line on the left side.
IdeogramStressMarking
Ideogram stress marking.
IdeogramAttributesOff
Ideogram attributes off. Resets:
IdeogramUnderlineOrRightSideLineIdeogramDoubleUnderlineOrDoubleLineOnTheRightSideIdeogramOverlineOrLeftSideLineIdeogramDoubleOverlineOrDoubleLineOnTheLeftSideIdeogramStressMarking.
Superscript
Implemented only in mintty.
Subscript
Implemented only in mintty.
NotSuperscriptOrSubscript
Implemented only in mintty.
Trait Implementations§
Source§impl Clone for SgrParameter
impl Clone for SgrParameter
Source§fn clone(&self) -> SgrParameter
fn clone(&self) -> SgrParameter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more