|
💻 TermColor User Manual
|


Public Member Functions | |
| AnsiTermBuffer (int width, int height) | |
| void | Clear () |
| void | Clear< TColorValue > (char ch, in TColorValue foreground, in TColorValue background) |
| void | SetChar (int x, int y, char ch) |
| void | SetForeground< TColorValue > (int x, int y, in TColorValue color) |
| void | SetBackground< TColorValue > (int x, int y, in TColorValue color) |
| void | Flush (TextWriter output) |
| void | Flush (TextWriter output, int offsetX, int offsetY) |
Public Member Functions inherited from TermColor.ITerminalBuffer | |
| void | SetPoint< TColorValue > (int x, int y, char ch, in TColorValue foreground, in TColorValue background) |
Properties | |
| int | Width [get] |
| int | Height [get] |
Properties inherited from TermColor.ITerminalBuffer | |
| int | Width [get] |
| int | Height [get] |
Text buffer capable of storing color data. Outputs text formatted with ANSI escape codes.
| TColor | Internal representation of color. |
| TColor | : | struct | |
| TColor | : | ANSIColor |
|
inline |
Create a new buffer with the given dimensions.
| width | Number of columns of the buffer. |
| height | Number of rows of the buffer. |
| void TermColor.AnsiTermBuffer< TColor >.Clear | ( | ) |
Fill the buffer with empty characters and default colors.
Implements TermColor.ITerminalBuffer.
|
inline |
Fill the buffer with given (char, IColor, IColor) tuple.
| TColorValue | Type of the color. |
| c | The character to clear with. |
| foreground | Foreground color. |
| background | Background color. |
Implements TermColor.ITerminalBuffer.
| TColorValue | : | IColor |
|
inline |
Forward the contents of the buffer to an output device.
| output | The output device. |
Implements TermColor.ITerminalBuffer.
|
inline |
Forward the contents of the buffer to an output device at a specific offset.
| output | The output device. |
Implements TermColor.ITerminalBuffer.
|
inline |
Write background color to one point in the buffer. Rows and columns are numbered from the top left starting at zero.
| x | Column number. |
| y | Row number. |
| background | Background color of the character. |
Implements TermColor.ITerminalBuffer.
| TColorValue | : | IColor |
|
inline |
Write a character to one point in the buffer. Rows and columns are numbered from the top left starting at zero.
| x | Column number. |
| y | Row number. |
| ch | The character to write. |
Implements TermColor.ITerminalBuffer.
|
inline |
Write foreground color to one point in the buffer. Rows and columns are numbered from the top left starting at zero.
| x | Column number. |
| y | Row number. |
| foreground | Foreground color of the character. |
Implements TermColor.ITerminalBuffer.
| TColorValue | : | IColor |