- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
Open
Labels
Description
When running any app using click.prompt on linux, something weird happens with backspace.
Recording
This screen recording shows 2 letters being removed when I hit backspace once, and the prompt being deleted when I backspace the entire line.
The returned input is also different from the text shown on screen.
Environment:
- Python version: 3.13.3
 - Click version: 8.2.1
 
Cause:
termui contains a workaround for windows where it prints a readline prompt itself. On linux, this confuses readline so things like backspace/ctrl-backspace and line wrapping don't work correctly.
This can be fixed by letting readline handling the prompt on linux: #2969
