Skip to content

Can it be judged that the cursor is at the beginning of a line #4728

Answered by tniessen
btea asked this question in Q&A
Discussion options

You must be logged in to vote

It will also fail when process.stdout is not a TTY, and it will potentially mess up anything written through process.stdout.write(). If a part of the application is using process.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.

Replies: 0 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@btea
Comment options

@tniessen
Comment options

@btea
Comment options

@tniessen
Comment options

Answer selected by btea
@btea
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants