Minor error on Input()

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

BlameTroi
New User
New User
Posts: 5
Joined: Sat May 24, 2025 6:31 pm
Location: USA

Minor error on Input()

Post 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.