PyRlwrap Module

PyRlwrap.py – a simple readline wrapper

Usage: PyRlwrap.py [OPTIONS] [command [args]]

Provides a very simple clone of GNU rlwrap program :

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).

Options:

  • --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.

Warning:

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.

Copyrigths:

Warning

This script works well, but it is not cleaned up, so reading the source is not nice.

PyRlwrap.SLEEP_TIME = 0

put 0 to delete wait timer

PyRlwrap.main(args)[source]

[OPTIONS] [command [args]]

Provides a very simple clone of GNU rlwrap program :

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.

Table Of Contents

Previous topic

Matrix Module

Next topic

ToolReadline Module

This Page