Page 1 of 1

Minor error on Input()

Posted: Mon May 26, 2025 4:23 pm
by BlameTroi
The doc says under remarks:
In non-graphical mode, a special return-value of #PB_Input_Eof (equals Chr(4)) will be received if the user enters a single Ctrl+D in the console, or a file that has been redirected to the programs input has reached its end.
#PB_Input_Eof is "\nEOF" in my 6.20 version on MacOS. I don't have another OS to test on.

Using <C-d> returns an empty string and then any later Input() returns #PB_Input_Eof.