multimeric / ArgparsePrompt

Wrapper for the built-in Argparse, allowing missing command-line arguments to be filled in by the user via interactive prompts
GNU General Public License v3.0
11 stars 4 forks source link

Backspace clears the whole line #3

Closed Daemo00 closed 5 years ago

Daemo00 commented 5 years ago

The following is due to issue https://bugs.python.org/issue12833

Steps:

  1. Add a prompt argument
  2. When prompted, write a char and then backspace

Before this PR: The whole line is cleared

After this PR: Only the written char is cleared

multimeric commented 5 years ago

Thanks, @Daemo00! Normally I'd ask for tests but this is such a simple fix and it would be relatively hard to fix, so I'm happy to merge straight away.