private bool getCursorVisibility()
        {
            CONSOLE_CURSOR_INFO cci = new CONSOLE_CURSOR_INFO();

            bool result = APICall.GetConsoleCursorInfo(_hConsoleOut, out cci);

            return(cci.bVisible);
        }
        public bool SetCursorVisibility(int Size, bool Visible)
        {
            CONSOLE_CURSOR_INFO cci = new CONSOLE_CURSOR_INFO {
                dwSize   = (uint)Size,
                bVisible = Visible
            };

            return(APICall.SetConsoleCursorInfo(_hConsoleOut, ref cci));
        }
Example #3
0
 public static extern bool SetConsoleCursorInfo(
     SafeFileHandle hConsoleOutput,
     [In] ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo);