PyRlwrap.py – a simple readline wrapper
Usage: PyRlwrap.py [OPTIONS] [command [args]]
it launchs command, with args, and with a support of readline facilities to write text :
- history,
- search in history,
- completion based on history,
- Nano like keybinding (Ctrl + a : beginning of a line, Ctrl + e : end of a line, etc).
--debug_pyrlwrap Show rlwrap traceback in case of an exception,
--verbous_pyrlwrap Show a message when launching command,
--historyName_pyrlwrap=NAME Precise the name of the history file, the default value is .pyrlwrap.history, in the current folder,
--no_history_pyrlwrap Don’t use history file save and read,
--prompt_pyrlwrap=PS Set the prompt used to PS, the default value is ‘>’ precedded by the numero of the command,
--Prompt_pyrlwrap Force a prompt,
--colorSupport_pyrlwrap Force the prompt to be colored,
--help_pyrlwrap Show this help message.
This program is under GPLv3 licence, and freely distributed by the Naereen Corp. In particular, it doesn’t provide any guaranty.
For example, synchronisation of prompt message, ‘> ‘ or the custom one, is not yet perfect. If it bother you, run with –noPrompt__pyrlwrap. To any bugs, suggestions, or questions, feel free to contact us : naereen-corporation@laposte.net.
Warning
This script works well, but it is not cleaned up, so reading the source is not nice.
put 0 to delete wait timer
[OPTIONS] [command [args]]
it launchs command, with args, and with a support of readline facilities to write text :
- history,
- search in history,
- completion based on history,
- Nano like keybinding (Ctrl + a : beginning of a line, Ctrl + e : end of a line, etc).
--debug_pyrlwrap Show rlwrap traceback in case of an exception,
--verbous_pyrlwrap Show a message when launching command,
--historyName_pyrlwrap=NAME Precise the name of the history file, the default value is .pyrlwrap.history, in the current folder,
--no_history_pyrlwrap Don’t use history file save and read,
--prompt_pyrlwrap=PS Set the prompt used to PS, the default value is ‘>’ precedded by the numero of the command,
--Prompt_pyrlwrap Force a prompt,
--colorSupport_pyrlwrap Force the prompt to be colored,
--help_pyrlwrap Show this help message.
This program is under GPLv3 licence, and freely distributed by the Naereen Corp. In particular, it doesn’t provide any guaranty.
For example, synchronisation of prompt message, ‘> ‘ or the custom one, is not yet perfect. If it bother you, run with –noPrompt__pyrlwrap. To any bugs, suggestions, or questions, feel free to contact us : naereen-corporation@laposte.net.