Console-related utility functions.
ConsoleUtil.ConsoleState | |
Determines the state of the standard error stream. The first call determines the state and caches it;
subsequent calls return the cached value. |
ConsoleUtil.ConsoleState | |
Determines the state of the standard output stream. The first call determines the state and caches it;
subsequent calls return the cached value. |
int | |
Returns the maximum line width that console applications should use to correctly word-wrap their output. If
the output is redirected to a file, this will return an arbitrary but sensible value, otherwise the value
reflects the width of the console buffer. |
void | | Writes the specified ConsoleColoredString to the console. |
void | Write(FormattableString value, ConsoleColor? foreground = null, ConsoleColor? background = null, bool stdErr = false) |
Writes the specified FormattableString to the console. |
void | |
Writes the specified ConsoleColoredString followed by a newline to the console. |
void | |
Writes the specified FormattableString to the console. |
void | |
Outputs the specified message to the console window, treating newlines as paragraph breaks. All paragraphs are
word-wrapped to fit in the console buffer, or to a sensible width if redirected to a file. Each paragraph is
indented by the number of spaces at the start of the corresponding line. |
void | |
Outputs the specified coloured message, marked up using EggsML, to the console window, treating newlines as
paragraph breaks. All paragraphs are word-wrapped to fit in the console buffer, or to a sensible width if
redirected to a file. Each paragraph is indented by the number of spaces at the start of the corresponding
line. |
void | |
Outputs the specified message to the console window, treating newlines as paragraph breaks. All paragraphs are
word-wrapped to fit in the console buffer, or to a sensible width if redirected to a file. Each paragraph is
indented by the number of spaces at the start of the corresponding line. |
void | |
Writes the specified or current stack trace to the console in pretty colors. |