9using System.Runtime.InteropServices;
41 if (Path.DirectorySeparatorChar ==
'\\')
62 [DllImport(
"kernel32.dll", SetLastError =
true)]
65 [DllImport(
"kernel32.dll", SetLastError =
true)]
66 internal static extern bool SetConsoleMode(IntPtr hConsoleHandle, uint mode);
68 [DllImport(
"kernel32.dll", SetLastError =
true)]
71 protected virtual void Dispose(
bool disposing)
97 GC.SuppressFinalize(
this);
Enables the virtual terminal processing mode on the current Windows Console. When the program ends,...
const int STD_OUTPUT_HANDLE
static IntPtr GetStdHandle(int nStdHandle)
~EnableVTModeForWindowsConsole()
virtual void Dispose(bool disposing)
const IntPtr INVALID_HANDLE_VALUE
const uint ENABLE_VIRTUAL_TERMINAL_PROCESSING
uint originalOutConsoleMode
static bool SetConsoleMode(IntPtr hConsoleHandle, uint mode)
static bool GetConsoleMode(IntPtr handle, out uint mode)
EnableVTModeForWindowsConsole()
Constructor that enables the virtual terminal processing for the current console output.
The namespace containing all Design Pattern Examples implemented in C#.