339 {
340 get
341 {
342 if (!global::Interop.Kernel32.GetConsoleCursorInfo(
OutputHandle, out var cci))
343 {
345 }
346 return cci.bVisible;
347 }
348 set
349 {
350 if (!global::Interop.Kernel32.GetConsoleCursorInfo(
OutputHandle, out var cci))
351 {
353 }
354 cci.bVisible =
value;
355 if (!global::Interop.Kernel32.SetConsoleCursorInfo(
OutputHandle, ref cci))
356 {
358 }
359 }
360 }
static IntPtr OutputHandle
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static int GetLastPInvokeError()