Program executed in the wrong order (?) in the IDE's console

Issue #73 wontfix
Former user created an issue
program Test;

  Write('Hello World');

In the above code "Hello World" will be printed, in the IDE's console, only after the return key has been pressed. Running the executable file doesn't show this behaviour (there the text is printed first and then stops waiting for input).

I have Intellij Community Edition 2017.2 and Free Pascal Compiler 3.0.2

Comments (2)

  1. Geo B repo owner

    The IDE doesn't change execution ordering. Probably the problem is in output buffering. Try to place "Flush(Output);" after Write(). It'll help if the problem is in buffering.

  2. Log in to comment