|
💻 TermColor User Manual
|

Public Member Functions | |
| void | SetPoint< TColorValue > (int x, int y, 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 offsetLeft, int offsetTop) |
| void | Clear< TColorValue > (char c, in TColorValue foreground, in TColorValue background) |
| void | Clear () |
Properties | |
| int | Width [get] |
| int | Height [get] |
Two dimensional buffer of triplets (char, IColor, IColor). Color might be internally represented as a specific implementation of IColor. Can be flushed out to other buffers or to a display device.
| void TermColor.ITerminalBuffer.Clear | ( | ) |
Fill the buffer with empty characters and default colors.
Implemented in TermColor.Win32TermBuffer, TermColor.Terminal, and TermColor.AnsiTermBuffer< TColor >.
| void TermColor.ITerminalBuffer.Clear< TColorValue > | ( | char | c, |
| in TColorValue | foreground, | ||
| in TColorValue | background | ||
| ) |
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. |
Implemented in TermColor.AnsiTermBuffer< TColor >, TermColor.Win32TermBuffer, and TermColor.Terminal.
| TColorValue | : | IColor |
| void TermColor.ITerminalBuffer.Flush | ( | TextWriter | output | ) |
Forward the contents of the buffer to an output device.
| output | The output device. |
Implemented in TermColor.Win32TermBuffer, TermColor.Terminal, and TermColor.AnsiTermBuffer< TColor >.
| void TermColor.ITerminalBuffer.Flush | ( | TextWriter | output, |
| int | offsetLeft, | ||
| int | offsetTop | ||
| ) |
Forward the contents of the buffer to an output device at a specific offset.
| output | The output device. |
Implemented in TermColor.Win32TermBuffer, TermColor.AnsiTermBuffer< TColor >, and TermColor.Terminal.
| void TermColor.ITerminalBuffer.SetBackground< TColorValue > | ( | int | x, |
| int | y, | ||
| in TColorValue | color | ||
| ) |
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. |
Implemented in TermColor.Win32TermBuffer, TermColor.Terminal, and TermColor.AnsiTermBuffer< TColor >.
| TColorValue | : | IColor |
| void TermColor.ITerminalBuffer.SetChar | ( | int | x, |
| int | y, | ||
| char | ch | ||
| ) |
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. |
Implemented in TermColor.Win32TermBuffer, TermColor.Terminal, and TermColor.AnsiTermBuffer< TColor >.
| void TermColor.ITerminalBuffer.SetForeground< TColorValue > | ( | int | x, |
| int | y, | ||
| in TColorValue | color | ||
| ) |
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. |
Implemented in TermColor.Win32TermBuffer, TermColor.Terminal, and TermColor.AnsiTermBuffer< TColor >.
| TColorValue | : | IColor |
|
inline |
Write a character, foreground and background color to one point in the buffer. Rows and columns are numbered from the top left starting at zero.
| TColorValue | Type of the color. |
| x | Column number. |
| y | Row number. |
| ch | The character to write. |
| foreground | Foreground color of the character. |
| background | Background color of the character. |
| TColorValue | : | IColor |
|
get |
Number of rows of the buffer.
|
get |
Nuber of columns of the buffer.