We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent25d8ea0 commit4f94347Copy full SHA for 4f94347
src/fsharp/fsi/console.fs
@@ -131,7 +131,7 @@ module Utils =
131
typeCursor=
132
static memberResetTo(top,left)=
133
Utils.guard(fun()->
134
- Console.CursorTop<- top;
+ Console.CursorTop<-mintop(Console.BufferHeight-1);
135
Console.CursorLeft<- left)
136
static memberMove(inset,delta)=
137
letposition= Console.CursorTop*(Console.BufferWidth- inset)+(Console.CursorLeft- inset)+ delta
@@ -216,6 +216,7 @@ type ReadLineConsole() =
216
if currLeft< x.Insetthen
217
if currLeft=0then Console.Write(if promptthen x.Prompt2else String(' ',x.Inset))
218
219
+ Console.CursorTop<- min Console.CursorTop(Console.BufferHeight-1);
220
Console.CursorLeft<- x.Inset);
221
222
// The caller writes the primary prompt. If we are reading the 2nd and subsequent lines of the