AnsiCodes
public static class AnsiCodes
ANSI escape sequence constants and TextWriter helpers.
| Member | Kind | Signature | Description |
|---|---|---|---|
BgDefault |
field | public const string BgDefault = "\x1b[49m" |
Public field value exposed by this type. |
Blink |
field | public const string Blink = "\x1b[5m" |
Public field value exposed by this type. |
Bold |
field | public const string Bold = "\x1b[1m" |
Public field value exposed by this type. |
Clear |
field | public const string Clear = "\x1b[2J" |
Public field value exposed by this type. |
ClearAndHome |
field | public const string ClearAndHome = "\x1b[H\x1b[2J" |
Public field value exposed by this type. |
CursorBlock |
field | public const string CursorBlock = "\x1b[2 q" |
Public field value exposed by this type. |
CursorBlockBlink |
field | public const string CursorBlockBlink = "\x1b[1 q" |
Public field value exposed by this type. |
CursorLine |
field | public const string CursorLine = "\x1b[6 q" |
Public field value exposed by this type. |
CursorLineBlink |
field | public const string CursorLineBlink = "\x1b[5 q" |
Public field value exposed by this type. |
CursorUnderline |
field | public const string CursorUnderline = "\x1b[4 q" |
Public field value exposed by this type. |
CursorUnderlineBlink |
field | public const string CursorUnderlineBlink = "\x1b[3 q" |
Public field value exposed by this type. |
DefaultCursorStyle |
field | public const string DefaultCursorStyle = "\x1b[0 q" |
Public field value exposed by this type. |
Dim |
field | public const string Dim = "\x1b[2m" |
Public field value exposed by this type. |
EraseToEndOfLine |
field | public const string EraseToEndOfLine = "\x1b[K" |
Public field value exposed by this type. |
FgDefault |
field | public const string FgDefault = "\x1b[39m" |
Public field value exposed by this type. |
Hidden |
field | public const string Hidden = "\x1b[8m" |
Public field value exposed by this type. |
HideCursor |
field | public const string HideCursor = "\x1b[?25l" |
Public field value exposed by this type. |
Home |
field | public const string Home = "\x1b[H" |
Public field value exposed by this type. |
Inverse |
field | public const string Inverse = "\x1b[7m" |
Public field value exposed by this type. |
Italic |
field | public const string Italic = "\x1b[3m" |
Public field value exposed by this type. |
Reset |
field | public const string Reset = "\x1b[0m" |
Public field value exposed by this type. |
ResetCursorColor |
field | public const string ResetCursorColor = "\x1b]112" |
Public field value exposed by this type. |
ResetTerminalBg |
field | public const string ResetTerminalBg = "\x1b]111" |
Public field value exposed by this type. |
RestoreCursor |
field | public const string RestoreCursor = "\x1b[u" |
Public field value exposed by this type. |
SaveCursor |
field | public const string SaveCursor = "\x1b[s" |
Public field value exposed by this type. |
ShowCursor |
field | public const string ShowCursor = "\x1b[?25h" |
Public field value exposed by this type. |
Strikethrough |
field | public const string Strikethrough = "\x1b[9m" |
Public field value exposed by this type. |
SwitchToAlternate |
field | public const string SwitchToAlternate = "\x1b[?1049h" |
Public field value exposed by this type. |
SwitchToMain |
field | public const string SwitchToMain = "\x1b[?1049l" |
Public field value exposed by this type. |
Underline |
field | public const string Underline = "\x1b[4m" |
Public field value exposed by this type. |
BgColor |
method | public static string BgColor(byte r, byte g, byte b) |
Executes this public operation. |
BgIndexed |
method | public static string BgIndexed(byte index) |
Executes this public operation. |
CursorColor |
method | public static string CursorColor(byte r, byte g, byte b) |
Executes this public operation. |
FgColor |
method | public static string FgColor(byte r, byte g, byte b) |
Executes this public operation. |
FgIndexed |
method | public static string FgIndexed(byte index) |
Executes this public operation. |
MoveTo |
method | public static string MoveTo(int col, int row) |
Move cursor to 1-based column, row. |
SetMousePointer |
method | public static string SetMousePointer(string shape) |
Executes this public operation. |
SetTerminalBg |
method | public static string SetTerminalBg(byte r, byte g, byte b) |
Executes this public operation. |
WriteAttributes |
method | public static void WriteAttributes(TextWriter w, TextAttributes attrs) |
Executes this public operation. |
WriteBgColor |
method | public static void WriteBgColor(TextWriter w, Rgba color) |
Executes this public operation. |
WriteFgColor |
method | public static void WriteFgColor(TextWriter w, Rgba color) |
Executes this public operation. |