-
Sometimes when I want to use At this point, I want to judge whether the current cursor is at the beginning of a line, if so, print the information directly, if not, print |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 6 replies
-
Reciting nodejs/node#48069 (comment):
|
Beta Was this translation helpful? Give feedback.
It will also fail when
process.stdout
is not a TTY, and it will potentially mess up anything written throughprocess.stdout.write()
. If a part of the application is usingprocess.stdout
as a non-logging, non-TTY output stream, then trying to simultaneously use it as a TTY will lead to problems in any case.