CliAnsiWriter Class
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Represents an ANSI writer, capable of outputting ANSI/VT escape sequences.
public sealed class CliAnsiWriter
- Inheritance
-
CliAnsiWriter
Constructors
| CliAnsiWriter(TextWriter) |
Initializes a new instance of the CliAnsiWriter class. |
| CliAnsiWriter(TextWriter, CliAnsiCapabilities) |
Initializes a new instance of the CliAnsiWriter class. |
Properties
| Capabilities |
Gets or sets the capabilities for the writer. |
Methods
| Background(CliColor) |
Sets the current background color by emitting |
| BeginLink(CliLink) |
Begins a link by emitting |
| BeginLink(string, int?) |
Begins a link by emitting |
| ClearScrollback() |
Clears the scrollback buffer by emitting |
| CursorBackward(int) |
This control function moves the cursor to the left by a specified number of columns
by emitting |
| CursorBackwardTabulation(int) |
Move the active position n tabs backward
by emitting |
| CursorDown(int) |
This control function moves the cursor down a specified number of lines in the same column
by emitting |
| CursorForward(int) |
This control function moves the cursor to the right by a specified number of columns
by emitting |
| CursorHome() |
Moves the cursor to position 1,1 (top left corner) by emitting |
| CursorHorizontalAbsolute(int) |
Moves the active position to the n-th character of the active line
by emitting |
| CursorHorizontalTabulation(int) |
Move the active position n tabs forward
by emitting |
| CursorLeft(int) |
This control function moves the cursor to the left by a specified number of columns
by emitting |
| CursorNextLine(int) |
Move the cursor to the next line
by emitting |
| CursorPosition(int, int) |
This control function moves the cursor to the specified line and column (1-indexed)
by emitting |
| CursorPreviousLine(int) |
Move the cursor to the preceding line
by emitting |
| CursorRight(int) |
This control function moves the cursor to the right by a specified number of columns
by emitting |
| CursorUp(int) |
Moves the cursor up a specified number of lines in the same column by emitting |
| Decoration(CliDecoration) |
Sets the current decoration by emitting |
| DeleteCharacter(int) |
This control function deletes one or more characters from the cursor position to the right
by emitting |
| DeleteLine(int) |
This control function deletes one or more lines in the scrolling region
by emitting |
| EndLink() |
Ends a link by emitting |
| EnterAltScreen() |
Enters the alternative screen buffer by emitting |
| EraseCharacter(int) |
Erases one or more characters from the cursor position to the right by emitting |
| EraseInDisplay(int) |
This control function erases characters from part or all of the display. When you erase complete lines, they become single-height, single-width lines, with all visual character attributes cleared. ED works inside or outside the scrolling margins. |
| EraseInLine(int) |
This control function erases characters on the line that has the cursor. EL clears all character attributes from erased character positions. EL works inside or outside the scrolling margins. |
| ExitAltScreen() |
Exits the alternative screen buffer by emitting |
| Foreground(CliColor) |
Sets the current foreground color by emitting |
| HideCursor() |
Hides the cursor by emitting |
| Index() |
Moves the cursor down one line in the same column by emitting |
| InsertCharacter(int) |
inserts one or more space (SP) characters starting at the cursor position
by emitting |
| InsertLine(int) |
Inserts one or more blank lines, starting at the cursor by emitting |
| ResetStyle() |
Resets any foreground, background, decoration, or style by emitting |
| RestoreCursor(bool) |
Moves cursor to the position saved by save cursor command in SCO console mode
by emitting |
| ReverseIndex() |
Moves the cursor up one line in the same column by emitting |
| SaveCursor(bool) |
Saves current cursor position for SCO console mode by emitting |
| ScrollDown(int) |
Moves the user window up a specified number of lines in page memory
by emitting |
| ScrollUp(int) |
Moves the user window down a specified number of lines in page memory
by emitting |
| SetCursorStyle(int) |
Select the style of the cursor on the screen by emitting |
| ShowCursor() |
Shows the cursor by emitting |
| Style(CliStyle, CliLink?) |
Writes a Style(CliStyle, CliLink?) by emitting |
| Write(int) |
Writes an integer. |
| Write(string) |
Writes the specified text. |
| Write(string, CliStyle, CliLink?) |
Writes the specified text with the specified style. |
| WriteLine() |
Writes an empty line. |
| WriteLine(string) |
Writes the specified text, followed by the current line terminator. |
| WriteLine(string, CliStyle, CliLink?) |
Writes the specified text with the specified style, followed by the current line terminator. |