Table of Contents

Field SGR

Namespace
Microlithix.Text.Ansi
Assembly
AnsiParser.dll

Select Graphic Rendition ('\u006d')

public const string SGR = "m"

Returns

string
Select Graphic Rendition ('\u006d')

Remarks

Default value: Reset (0)

SGR is used to establish one or more graphic rendition aspects for subsequent text. The established aspects remain in effect until the next occurrence of SGR in the data stream, depending on the setting of the GRAPHIC RENDITION COMBINATION MODE (GRCM). Each graphic rendition aspect is specified by one or more of the following parameter values defined in GraphicRenditionSelector:

Parameter ValueDescription
Reset (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).
Bold (1) Bold or increased intensity.
Faint (2) Faint, decreased intensity or second colour.
Italic (3) Italicized.
Underline (4) Singly underlined.
SlowBlink (5) Slowly blinking (less than 150 per minute).
RapidBlink (6) Rapidly blinking (150 per minute or more).
Inverse (7) Negative image.
Hide (8) Concealed characters.
StrikeThrough (9) Crossed-out (characters still legible but marked as to be deleted).
DefaultFont (10) Primary (default) font.
AltFont1 (11) First alternative font.
AltFont2 (12) Second alternative font.
AltFont3 (13) Third alternative font.
AltFont4 (14) Fourth alternative font.
AltFont5 (15) Fifth alternative font.
AltFont6 (16) Sixth alternative font.
AltFont7 (17) Seventh alternative font.
AltFont8 (18) Eighth alternative font.
AltFont9 (19) Ninth alternative font.
Fraktur (20) Fraktur (Gothic).
DoubleUnderline (21) Doubly underlined.
NormalIntensity (22) Normal color or normal intensity (neither bold nor faint).
NotItalic (23) Not italicized, not fraktur.
NotUnderlined (24) Not underlined (neither singly nor doubly).
NotBlinking (25) Steady (not blinking).
ProportionalSpacing (26) Reserved for proportional spacing as specified in CCITT Recommendation T.61.
NotInverse (27) Positive image.
NotHidden (28) Revealed characters.
NotStrikeThrough (29) Not crossed out.
ForegroundBlack (30) Black display.
ForegroundRed (31) Red display.
ForegroundGreen (32) Green display.
ForegroundYellow (33) Yellow display.
ForegroundBlue (34) Blue display.
ForegroundMagenta (35) Magenta display.
ForegroundCyan (36) Cyan display.
ForegroundWhite (37) White display.
SetForegroundColor (38)

Set foreground colour as specified in ISO 8613-6 [CCITT Recommendation T.416]).

See SetForegroundColor for details.

... (...) ...