pub enum GraphicRendition {
Show 56 variants Default, HighIntensity, LowIntensity, Italicized, Underlined, SlowlyBlinking, RapidlyBlinking, Negative, Concealed, CrossedOut, PrimaryFont, FirstAlternativeFont, SecondAlternativeFont, ThirdAlternativeFont, ForthAlternativeFont, FifthAlternativeFont, SixthAlternativeFont, SeventhAlternativeFont, EighthAlternativeFont, NinthAlternativeFont, Fraktur, DoublyUnderlined, NormalIntensity, NormalStyle, NotUnderlined, NotBlinking, Positive, Revealed, NotCrossedOut, BlackForeground, RedForeground, GreenForeground, YellowForeground, BlueForeground, MagentaForeground, CyanForeground, WhiteForeground, DefaultForeground, BlackBackground, RedBackground, GreenBackground, YellowBackground, BlueBackground, MagentaBackground, CyanBackground, WhiteBackground, DefaultBackground, Framed, Encircled, Overlined, NotFramed, NotOverlined, IdeogramUnderline, IdeogramDoubleUnderline, IdeogramStressMarking, CancelIdeogramRendition,
}
Expand description

Valid parameter values to the function SGR.

Variants§

§

Default

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

Bold or increased intensity.

§

LowIntensity

Faint, decreased intensity or second color.

§

Italicized

Italicized.

§

Underlined

Singly underlined.

§

SlowlyBlinking

Slowly blinking (less than 150 per minute).

§

RapidlyBlinking

Rapidly blinking (more than 150 per minute).

§

Negative

Negative image.

§

Concealed

Concealed characters.

§

CrossedOut

Crossed-out (characters still legible but marked as to be deleted).

§

PrimaryFont

Primary (default) font.

§

FirstAlternativeFont

First alternative font.

§

SecondAlternativeFont

Second alternative font.

§

ThirdAlternativeFont

Third alternative font.

§

ForthAlternativeFont

Forth alternative font.

§

FifthAlternativeFont

Fifth alternative font.

§

SixthAlternativeFont

Sixth alternative font.

§

SeventhAlternativeFont

Seventh alternative font.

§

EighthAlternativeFont

Eighth alternative font.

§

NinthAlternativeFont

Ninth alternative font.

§

Fraktur

Fraktur (Gothic).

§

DoublyUnderlined

Doubly underlined.

§

NormalIntensity

Normal colour or normal intensity (neither bold nor faint).

§

NormalStyle

Not italicized, not fraktur

§

NotUnderlined

Not underlined (neither singly nor doubly).

§

NotBlinking

Steady (not blinking).

§

Positive

Positive Image.

§

Revealed

Revealed characters.

§

NotCrossedOut

Not crossed out.

§

BlackForeground

Black display.

§

RedForeground

Red display.

§

GreenForeground

Green display.

§

YellowForeground

Yellow display.

§

BlueForeground

Blue display.

§

MagentaForeground

Magenta display.

§

CyanForeground

Cyan display.

§

WhiteForeground

White display.

§

DefaultForeground

Default display color (implementation specific).

§

BlackBackground

Black background.

§

RedBackground

Red background.

§

GreenBackground

Green Background.

§

YellowBackground

Yellow background.

§

BlueBackground

Blue background.

§

MagentaBackground

Magenta background.

§

CyanBackground

Cyan background.

§

WhiteBackground

White background.

§

DefaultBackground

Default background color (implementation specific).

§

Framed

Framed.

§

Encircled

Encircled.

§

Overlined

Overlined.

§

NotFramed

Not framed, not encircled.

§

NotOverlined

Not overlined,

§

IdeogramUnderline

Ideogram underline or right side line.

§

IdeogramDoubleUnderline

Ideogram double underline or double line on the right side.

§

IdeogramStressMarking

Ideogram stress marking.

§

CancelIdeogramRendition

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<GraphicRendition> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.