cursor visibility
901e7a1045c5c01fe5739a4406f34c345980c098
1 files changed
src/InteractiveReadLine/ConsoleReadLine.cs
diff --git a/src/InteractiveReadLine/ConsoleReadLine.cs b/src/InteractiveReadLine/ConsoleReadLine.cs
index 01dd548..2f97829 100644
--- a/src/InteractiveReadLine/ConsoleReadLine.cs
+++ b/src/InteractiveReadLine/ConsoleReadLine.cs
@@ -42,9 +42,11 @@ namespace InteractiveReadLine
/// <param name="state"></param>
public void SetDisplay(LineDisplayState state)
{
+ Console.CursorVisible = false; // AAB
var totalText = state.Prefix + state.LineBody + state.Suffix;
var cursor = state.Prefix.Length + state.Cursor;
this.SetText(totalText, cursor);
+ Console.CursorVisible = true; // AAB
}
/// <summary>