|
@@ -1528,6 +1528,8 @@ namespace Terminal.Gui {
|
|
UpdateScreen ();
|
|
UpdateScreen ();
|
|
|
|
|
|
WinConsole.SetInitialCursorVisibility ();
|
|
WinConsole.SetInitialCursorVisibility ();
|
|
|
|
+
|
|
|
|
+ UpdateCursor ();
|
|
#if false
|
|
#if false
|
|
var bufferCoords = new WindowsConsole.Coord (){
|
|
var bufferCoords = new WindowsConsole.Coord (){
|
|
X = (short)Clip.Width,
|
|
X = (short)Clip.Width,
|
|
@@ -1565,9 +1567,6 @@ namespace Terminal.Gui {
|
|
|
|
|
|
WinConsole.WriteToConsole (new Size (Cols, Rows), OutputBuffer, bufferCoords, damageRegion);
|
|
WinConsole.WriteToConsole (new Size (Cols, Rows), OutputBuffer, bufferCoords, damageRegion);
|
|
|
|
|
|
- // The views that wants to display the cursor must call UpdateCursor explicitly.
|
|
|
|
- //UpdateCursor ();
|
|
|
|
-
|
|
|
|
// System.Diagnostics.Debugger.Log (0, "debug", $"Region={damageRegion.Right - damageRegion.Left},{damageRegion.Bottom - damageRegion.Top}\n");
|
|
// System.Diagnostics.Debugger.Log (0, "debug", $"Region={damageRegion.Right - damageRegion.Left},{damageRegion.Bottom - damageRegion.Top}\n");
|
|
WindowsConsole.SmallRect.MakeEmpty (ref damageRegion);
|
|
WindowsConsole.SmallRect.MakeEmpty (ref damageRegion);
|
|
}
|
|
}
|
|
@@ -1611,6 +1610,7 @@ namespace Terminal.Gui {
|
|
/// <inheritdoc/>
|
|
/// <inheritdoc/>
|
|
public override bool SetCursorVisibility (CursorVisibility visibility)
|
|
public override bool SetCursorVisibility (CursorVisibility visibility)
|
|
{
|
|
{
|
|
|
|
+ savedCursorVisibility = visibility;
|
|
return WinConsole.SetCursorVisibility (visibility);
|
|
return WinConsole.SetCursorVisibility (visibility);
|
|
}
|
|
}
|
|
|
|
|