Class TextWriterWrappedColor
Console text writer with color support (wrapped)
Inheritance
Namespace: Terminaux.Writer.DynamicWriters
Assembly: Terminaux.dll
Syntax
public static class TextWriterWrappedColor
Methods
| Edit this page View SourceWriteWrappedColor(string, bool, Color, params object[])
Outputs the text into the terminal prompt with custom color support and wraps the long terminal output if needed.
Declaration
public static void WriteWrappedColor(string Text, bool Line, Color color, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | color | A color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
WriteWrappedColorBack(string, bool, Color, Color, params object[])
Outputs the text into the terminal prompt with custom color support and wraps the long terminal output if needed.
Declaration
public static void WriteWrappedColorBack(string Text, bool Line, Color ForegroundColor, Color BackgroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | ForegroundColor | A foreground color that will be changed to. |
Color | BackgroundColor | A background color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
WriteWrappedPlain(string, bool, params object[])
Outputs the text into the terminal prompt, wraps the long terminal output if needed, and sets colors as needed.
Declaration
public static void WriteWrappedPlain(string Text, bool Line, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
object[] | vars | Variables to format the message before it's written. |