Пример #1
0
 public ConsoleEx()
 {
     Win32Native.AllocConsole();
     hConsoleIn = Win32Native.GetStdHandle(-10);
     hConsoleOut = Win32Native.GetStdHandle(-11);
     conInfo = new Win32Native.CONSOLE_INFO();
     updateConsoleInfo();
     cursorInfo = new Win32Native.CURSOR_INFO();
     SetCursorType(CursorType.SingleLine);
     backgroundAttrib = 7;
 }
Пример #2
0
 public ConsoleEx()
 {
     Win32Native.AllocConsole();
     hConsoleIn  = Win32Native.GetStdHandle(-10);
     hConsoleOut = Win32Native.GetStdHandle(-11);
     conInfo     = new Win32Native.CONSOLE_INFO();
     updateConsoleInfo();
     cursorInfo = new Win32Native.CURSOR_INFO();
     SetCursorType(CursorType.SingleLine);
     backgroundAttrib = 7;
 }