vscode-nim icon indicating copy to clipboard operation
vscode-nim copied to clipboard

Can't see stdout

Open R3D9477 opened this issue 7 years ago • 0 comments

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: 1

Linux terminal: 2

R3D9477 avatar Mar 23 '18 08:03 R3D9477