hydra-python-agent
hydra-python-agent copied to clipboard
Add readline support to cli
I'm submitting a
- [ ] bug report.
- [x] feature request.
Current Behaviour:
Currently, you cannot use arrow keys and navigate the input with the CLI, navigate previous commands and other basic CLI actions:
Expected Behaviour:
Use it like any other CLI
This needs some cross-OS testing after importing readline because the dependency to install is a bit different in each OS. Saving some links:
Linux -> Comes by default https://docs.python.org/3/library/readline.html Windows -> https://github.com/pyreadline/pyreadline Mac -> https://github.com/ludwigschwardt/python-gnureadline
Do you want to work on this issue?
Yes
I would love to work on this
Please open a PR with your solution and metion this issue :)
This feature can be implemented by using cmd library I tried it and it works well. here I have attached a screenshot of the same.
It supports the arrow key gestures and I have used it on Linux and windows.