예제 #1
0
 /// <summary>
 /// Делает курсор консоли видимым и устанавливает значение CursorIsVisible в true.
 /// </summary>
 internal void ShowCursor()
 {
     if (!usingLinux) {
         CONSOLE_CURSOR_INFO consoleCursorInfo = new CONSOLE_CURSOR_INFO {
             Size = 5,
             Visible = true
         };
         Win32.SetConsoleCursorInfo (stdOutputHandle, ref consoleCursorInfo);
     } else {
         NCurses.curs_set (CursorVisibility.Visible);
     }
     CursorIsVisible = true;
 }
예제 #2
0
 public static extern bool SetConsoleCursorInfo(IntPtr hConsoleOutput, [In] ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
예제 #3
0
 public static extern bool GetConsoleCursorInfo(IntPtr hConsoleOutput, out CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
예제 #4
0
 public static extern bool GetConsoleCursorInfo(IntPtr hConsoleOutput, out CONSOLE_CURSOR_INFO lpConsoleCursorInfo);