Skip to content

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

@WebReflection

Description

@WebReflection

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions