You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
@@ -726,13 +730,17 @@ type FsiConsoleInput(fsiOptions: FsiCommandLineOptions, inReader: TextReader, ou
726
730
#else
727
731
letconsoleLooksOperational()=
728
732
if fsiOptions.ProbeToSeeIfConsoleWorksthen
733
+
if!progressthen fprintfn outWriter"probing to see if console works..."
729
734
try
730
735
// Probe to see if the console looks functional on this version of .NET
731
736
let_= Console.KeyAvailable
732
-
let_= Console.ForegroundColor
737
+
letc1= Console.ForegroundColor
738
+
letc2= Console.BackgroundColor
733
739
let_= Console.CursorLeft<- Console.CursorLeft
734
-
true
740
+
if!progressthen fprintfn outWriter"probe succeeded, we might have a console, comparing foreground (%A) and background (%A) colors, if they are the same then we're running in emacs or VS on unix and we turn off readline by default..." c1 c2
741
+
c1<> c2
735
742
with_->
743
+
if!progressthen fprintfn outWriter"probe failed, we have no console..."
736
744
(* warning(Failure("Note: there was a problem setting up custom readline console support. Consider starting fsi.exe with the --no-readline option"));*)
737
745
false
738
746
else
@@ -780,6 +788,7 @@ type FsiConsoleInput(fsiOptions: FsiCommandLineOptions, inReader: TextReader, ou
780
788
)).Start()
781
789
else
782
790
#endif
791
+
if!progressthen fprintfn outWriter"first-line-reader-thread not in use."
783
792
consoleReaderStartupDone.Set()|> ignore
784
793
785
794
/// Try to get the first line, if we snarfed it while probing.
@@ -1548,6 +1557,7 @@ type FsiStdinLexerProvider(tcConfigB, fsiStdinSyphon,