Skip to content
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

Empty input() or input("") won't ask a thing and duplicate the output #9

Open
WebReflection opened this issue Feb 22, 2024 · 0 comments

Comments

@WebReflection
Copy link

WebReflection commented Feb 22, 2024

I am basically forwarding this (wrongly opened) Xterm.js issue: xtermjs/xterm.js#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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant