pub enum GraphicRendition {
Show 56 variants
Default = 0,
HighIntensity = 1,
LowIntensity = 2,
Italicized = 3,
Underlined = 4,
SlowlyBlinking = 5,
RapidlyBlinking = 6,
Negative = 7,
Concealed = 8,
CrossedOut = 9,
PrimaryFont = 10,
FirstAlternativeFont = 11,
SecondAlternativeFont = 12,
ThirdAlternativeFont = 13,
ForthAlternativeFont = 14,
FifthAlternativeFont = 15,
SixthAlternativeFont = 16,
SeventhAlternativeFont = 17,
EighthAlternativeFont = 18,
NinthAlternativeFont = 19,
Fraktur = 20,
DoublyUnderlined = 21,
NormalIntensity = 22,
NormalStyle = 23,
NotUnderlined = 24,
NotBlinking = 25,
Positive = 27,
Revealed = 28,
NotCrossedOut = 29,
BlackForeground = 30,
RedForeground = 31,
GreenForeground = 32,
YellowForeground = 33,
BlueForeground = 34,
MagentaForeground = 35,
CyanForeground = 36,
WhiteForeground = 37,
DefaultForeground = 39,
BlackBackground = 40,
RedBackground = 41,
GreenBackground = 42,
YellowBackground = 43,
BlueBackground = 44,
MagentaBackground = 45,
CyanBackground = 46,
WhiteBackground = 47,
DefaultBackground = 49,
Framed = 51,
Encircled = 52,
Overlined = 53,
NotFramed = 54,
NotOverlined = 55,
IdeogramUnderline = 60,
IdeogramDoubleUnderline = 61,
IdeogramStressMarking = 62,
CancelIdeogramRendition = 63,
}
Expand description
Valid parameter values to the function SGR
.
Variants§
Default = 0
Default rendition (implementation-defined), cancels the effect of any preceding occurrence of SGR
in the
data stream regardless of the setting of the GRAPHIC RENDITION COMBINATION MODE (GRCM
).
HighIntensity = 1
Bold or increased intensity.
LowIntensity = 2
Faint, decreased intensity or second color.
Italicized = 3
Italicized.
Underlined = 4
Singly underlined.
SlowlyBlinking = 5
Slowly blinking (less than 150 per minute).
RapidlyBlinking = 6
Rapidly blinking (more than 150 per minute).
Negative = 7
Negative image.
Concealed = 8
Concealed characters.
CrossedOut = 9
Crossed-out (characters still legible but marked as to be deleted).
PrimaryFont = 10
Primary (default) font.
FirstAlternativeFont = 11
First alternative font.
SecondAlternativeFont = 12
Second alternative font.
ThirdAlternativeFont = 13
Third alternative font.
ForthAlternativeFont = 14
Forth alternative font.
FifthAlternativeFont = 15
Fifth alternative font.
SixthAlternativeFont = 16
Sixth alternative font.
SeventhAlternativeFont = 17
Seventh alternative font.
EighthAlternativeFont = 18
Eighth alternative font.
NinthAlternativeFont = 19
Ninth alternative font.
Fraktur = 20
Fraktur (Gothic).
DoublyUnderlined = 21
Doubly underlined.
NormalIntensity = 22
Normal colour or normal intensity (neither bold nor faint).
NormalStyle = 23
Not italicized, not fraktur
NotUnderlined = 24
Not underlined (neither singly nor doubly).
NotBlinking = 25
Steady (not blinking).
Positive = 27
Positive Image.
Revealed = 28
Revealed characters.
NotCrossedOut = 29
Not crossed out.
BlackForeground = 30
Black display.
RedForeground = 31
Red display.
GreenForeground = 32
Green display.
YellowForeground = 33
Yellow display.
BlueForeground = 34
Blue display.
MagentaForeground = 35
Magenta display.
CyanForeground = 36
Cyan display.
WhiteForeground = 37
White display.
DefaultForeground = 39
Default display color (implementation specific).
BlackBackground = 40
Black background.
RedBackground = 41
Red background.
GreenBackground = 42
Green Background.
YellowBackground = 43
Yellow background.
BlueBackground = 44
Blue background.
MagentaBackground = 45
Magenta background.
CyanBackground = 46
Cyan background.
WhiteBackground = 47
White background.
DefaultBackground = 49
Default background color (implementation specific).
Framed = 51
Framed.
Encircled = 52
Encircled.
Overlined = 53
Overlined.
NotFramed = 54
Not framed, not encircled.
NotOverlined = 55
Not overlined,
IdeogramUnderline = 60
Ideogram underline or right side line.
IdeogramDoubleUnderline = 61
Ideogram double underline or double line on the right side.
IdeogramStressMarking = 62
Ideogram stress marking.
CancelIdeogramRendition = 63
Cancel Ideogram rendition settings.
Trait Implementations§
source§impl Clone for GraphicRendition
impl Clone for GraphicRendition
source§fn clone(&self) -> GraphicRendition
fn clone(&self) -> GraphicRendition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GraphicRendition
impl Default for GraphicRendition
source§fn default() -> GraphicRendition
fn default() -> GraphicRendition
source§impl PartialEq for GraphicRendition
impl PartialEq for GraphicRendition
source§fn eq(&self, other: &GraphicRendition) -> bool
fn eq(&self, other: &GraphicRendition) -> bool
self
and other
values to be equal, and is used
by ==
.