Closed andrewmoise closed 3 months ago
It sounds like you desire some missing features and it also sounds like those missing features are things you should write.
How should Node know if a given bit of input is complete or not? As a stream process.stdin
will pass along whatever it receives character by character irrespective of that those characters are. You need to write the logic to determine if that input qualifies as complete enough to issue a child process command.
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
Details
So, if I have a line of input half-typed at my readline prompt, and output goes to the console, it breaks my input line in the middle, prints the output, and leaves me on a blank line. It seems to me like it'd be better to clear the half-line of input, print the output, and then redraw the prompt and half-line down below the output line, so I can keep going with my input line. No?
I get that we can't do anything if some random text comes in over stdout, but I would propose that it'd be better to offer a function that developers can call to print an output message while the user's in the middle of typing text, that doesn't ruin the user's input line. I'd be happy to make up a PR if this is something people are open to.
Node.js version
Example code
Operating system
Mac OS, node via homebrew
Scope
runtime
Module and version
No response