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

source§

fn clone(&self) -> GraphicRendition

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for GraphicRendition

source§

fn default() -> GraphicRendition

Returns the “default value” for a type. Read more
source§

impl PartialEq for GraphicRendition

source§

fn eq(&self, other: &GraphicRendition) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for GraphicRendition

source§

impl Eq for GraphicRendition

source§

impl StructuralEq for GraphicRendition

source§

impl StructuralPartialEq for GraphicRendition

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.