[Gambas-bugtracker] Bug #2081: Trailing semicolon stops print from running properly before input command
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Thu Feb 11 17:19:55 CET 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2081&from=L21haW4-
Comment #3 by Benoît MINISINI:
It's because when using terminal the streams are buffered, and flushed only when sending a newline character.
Consequently, when "Input" is executed, the output stream is not flushed, as you use a semi-colon to prevent printing a newline.
You must use the "Flush" instruction just after your Print.
Maybe I could issue the Flush automatically, but there is no link between the print stream and the input stream (they can be anything, not necessarily the same terminal).
Benoît MINISINI changed the state of the bug to: Rejected.
More information about the Bugtracker
mailing list