-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use prompt_toolkit.prompt if available #1122
Comments
I'm open to reviewing something that allows customizing the prompt, if it's not possible already, but I do not want to add these sorts of optional imports that change behavior. |
Ok. So do you think it is ok to add prompt_toolkit as dependency and always use |
No, that's what I don't want. |
Alright. So I close this issue, as there are other issues about enhancing the prompt. |
When prompt-toolkit is installed, you could use
prompt_toolkit.prompt
as drop-in-replacement ofinput
orraw_input
. This would make it possible to navigate with arrow keys and Ctrl+A and Ctrl+E and more.Example code:
Instead of:
click/click/termui.py
Line 17 in da4a182
you could use this:
Related: #181 and #173
If you want, I can make a pull request.
Click: 6.7
Python 3.7
The text was updated successfully, but these errors were encountered: