mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
Merge pull request #1656 from BDisp/update-cursor-fix
Cursor visibility fix.
This commit is contained in:
@@ -1528,6 +1528,8 @@ namespace Terminal.Gui {
|
||||
UpdateScreen ();
|
||||
|
||||
WinConsole.SetInitialCursorVisibility ();
|
||||
|
||||
UpdateCursor ();
|
||||
#if false
|
||||
var bufferCoords = new WindowsConsole.Coord (){
|
||||
X = (short)Clip.Width,
|
||||
@@ -1565,9 +1567,6 @@ namespace Terminal.Gui {
|
||||
|
||||
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");
|
||||
WindowsConsole.SmallRect.MakeEmpty (ref damageRegion);
|
||||
}
|
||||
@@ -1611,6 +1610,7 @@ namespace Terminal.Gui {
|
||||
/// <inheritdoc/>
|
||||
public override bool SetCursorVisibility (CursorVisibility visibility)
|
||||
{
|
||||
savedCursorVisibility = visibility;
|
||||
return WinConsole.SetCursorVisibility (visibility);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user