Allow writing to stdout without automatically adding new line #64
Xkonti
started this conversation in
Feature Request
Replies: 1 comment
-
Thanks - good point! Looks like we have a bad assumption that new chunks in the log stream are line-delimited and they definitely aren't always. Will try and improve this part. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe it's easier to explain it with a bit of code. Here's code that writes to
stdout
(same asconsole.log
):Currently it will log:
I would be great if
Deno.stdout.write
didn't automatically add\n
after each execution. Not adding]n
is the default Deno behavior:This would allow for advanced logging, especially considering we have real-time logging now. This would make visual progress bars and similar terminal-like features possible.
Beta Was this translation helpful? Give feedback.
All reactions