示例#1
0
        private ConsoleCursorInfo GetCursorInfo()
        {
            if (disposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            ConsoleCursorInfo cci = new ConsoleCursorInfo();

            if (!WinCon.GetConsoleCursorInfo(_handle, cci))
            {
                throw new ApplicationException("Error getting cursor information.");
            }
            return(cci);
        }