xterm-readline
xterm-readline copied to clipboard
Empty input() or input("") won't ask a thing and duplicate the output
I am basically forwarding this (wrongly opened) Xterm.js issue: https://github.com/xtermjs/xterm.js/issues/4966
Apparently when no argument/parameter is passed to input(), or input("") with empty string, expectations are broken and the terminal prints last printed thing twice.
Is this a known issue and/or can we fix it by passing a zero-width char out of the box, when no argument is provided, which solves all the things?
That is: input("") (note: you don't see it, that's its purpose, your IDE would though, or should!)
input("")
GitHub copy would definitively give you that invisible char!
Thank you!