Class ConsoleUtil
Utility class for console window operations.
public static class ConsoleUtil
- Inheritance
-
ConsoleUtil
- Inherited Members
Methods
ApplyCppConsole()
Applies the console handle to standard output and error streams for C++ compatibility.
public static void ApplyCppConsole()
Hide()
Hides the console window.
public static void Hide()
SetStdHandle(int, nint)
Sets the handle for the specified standard device (standard input, standard output, or standard error).
public static extern int SetStdHandle(int stdHandle, nint handle)
Parameters
Returns
- int
Nonzero if the function succeeds; otherwise, zero
Show()
Shows the console window. If the console doesn't exist, it creates a new one.
public static void Show()