You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stdout.write doesn't actually print out to the terminal window until the \n newline symbol has been "written". Because of that, it's impossible to print something to terminal output without moving the cursor to the new line.
Procs and macros that depend on writing to stdout have the same issue, for example styledWrite in std/terminal.
Nim Version
Nim Compiler Version 2.0.4 [Linux: amd64]
Compiled at 2024-03-28
Description
The
stdout.write
doesn't actually print out to the terminal window until the\n
newline symbol has been "written". Because of that, it's impossible to print something to terminal output without moving the cursor to the new line.Procs and macros that depend on writing to
stdout
have the same issue, for examplestyledWrite
instd/terminal
.Nim Version
Nim Compiler Version 2.0.4 [Linux: amd64]
Compiled at 2024-03-28
Operating system
Windows 11 WSL2 Ubuntu 22.04.3 LTS
Current Output
Expected Output
Possible Solution
No response
Additional Information
The equivalent in Zig works properly in the same WSL2 environment:
The
flushFile
proc makes it work as intended:The text was updated successfully, but these errors were encountered: