SGR

SGR (Select Graphic Rendition) sets display attributes.

Values

ValueMeaning
init0

< Default.

bold1

< Bold or increased intensity.

faint2

< Faint (decreased intensity)

italic3

< Italic. Not widely supported. Sometimes treated as inverse.

underline4

< Underline.

reverseVideo7

< Reversed video (swap). Swap foreground with background color.

hide8

< Conceal (Hide). Not widely supported.

crossedOut9

< Crossed-out. Characters legible, but marked for deletion.

primaryDefaultFont10

< Primary (default) font.

fraktur20

< Fraktur. Rarely supported

blackForegroundColor30

< Black foreground color.

redForegroundColor31

< Red foreground color.

greenForegroundColor32

< Green foreground color.

yellowForegroundColor33

< Yellow foreground color.

blueForegroundColor34

< Blue foreground color.

magentaForegroundColor35

< Magenta foreground color.

cyanForegroundColor36

< Cyan foreground color.

whiteForegroundColor37

< White foreground color.

defaultForegroundColor39

< Default foreground color.

lightBlackForegroundColor90

< Light black foreground color.

lightRedForegroundColor91

< Light red foreground color.

lightGreenForegroundColor92

< Light green foreground color.

lightYellowForegroundColor93

< Light yellow foreground color.

lightBlueForegroundColor94

< Light blue foreground color.

lightMagentaForegroundColor95

< Light magenta foreground color.

lightCyanForegroundColor96

< Light cyan foreground color.

lightWhiteForegroundColor97

< Light white foreground color.

defaultBackgroundColor49

< Default background color.

framed51

< Framed.

encircled52

< Encircled.

overlined53

< Overlined.

notFramedOrEncircled54

< Not framed or encircled.

notOverlined55

< Not overlined.

IdeogramUnderlineOrRightSideLine60

< Ideogram underline or right side line.

See Also

Meta