Open R3D9477 opened 6 years ago
Hi. Why I can't see stdout (in VSCode console) before looped stdin?
import strutils stdout.write("Commands:\n") stdout.write(" 1 - start\n") stdout.write(" 2 - get server status\n") stdout.write(" 3 - run client\n") stdout.write(" 4 - stop and exit\n") var cmd = 0 while (cmd != 4): stdout.write("> ") try: cmd = parseInt(stdin.readLine().strip()) except: cmd = 0 case cmd: of 2: discard of 3: discard else: discard
VSCode:
Linux terminal:
Hi. Why I can't see stdout (in VSCode console) before looped stdin?
VSCode:![1](https://user-images.githubusercontent.com/15020827/37819394-63ad2c1c-2e8e-11e8-873c-3039de08927c.png)
Linux terminal:![2](https://user-images.githubusercontent.com/15020827/37819398-66f127f2-2e8e-11e8-803c-a76fc83ded7d.png)