When prompt-toolkit is installed, you could use prompt_toolkit.prompt as drop-in-replacement of input or raw_input. This would make it possible to navigate with arrow keys and Ctrl+A and Ctrl+E and more.
Example code:
Instead of:
|
visible_prompt_func = raw_input |
you could use this:
try:
from prompt_toolkit import prompt as visible_prompt_func
except ImportError:
visible_prompt_func = raw_input
Related: #181 and #173
If you want, I can make a pull request.
Click: 6.7
Python 3.7
When prompt-toolkit is installed, you could use
prompt_toolkit.promptas drop-in-replacement ofinputorraw_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