-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cursorTo
& clearLine
to streams
#7082
Conversation
Could you link API docs to support this change? If it's an undocumented API in Node (even though it does exist in the source) we would have to think twice about merging this. |
Hey @nmote , sure, should've done that from the get-go, sorry bout that! I'm certain those are not undocumented APIs, I think this might be what you are looking for
Also, for context: nodejs/node-v0.x-archive#6948 |
We already have Since there aren't any docs which support this change, I'm going to close for now. Feel free to reopen if I have misunderstood something or if you find different docs. |
Hey @nmote , I guess then I should've linked to these docs instead, on the There are for sure missing definitions for these two functions, I even found code on this repo itself using them when I was researching the issue after getting Flow errors on my project and before opening this PR: flow/packages/flow-dev-tools/src/test/RunQueue.js Lines 202 to 208 in 41b0eab
flow/packages/flow-dev-tools/src/record/recordRunner.js Lines 124 to 126 in 41b0eab
Also note that:
I believe this is the pull request that merged the documentation for these functions on the Node repo: nodejs/node#22893 So I think this is still missing from Flow and should be addressed, but I can't re-open this issue apparently. Let me know what you think! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mroch has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Using
process.stdout.cursorTo
andprocess.stdout.clearLine
will error in Flow because those definitions are missing.node/lib/readline.js
node/lib/tty.js
node/lib/readline.js
node/lib/tty.js
I'm not sure if I added them in the correct place, so please check and let me know.