/
Readline wrapper

Readline wrapper

Readline is a library with which some command line programs such as bash can edit its command line and give command history.

Other interactive programs may not have this capability. rlwrap gives line editing and a command history function for such programs.


Instructions are:

  1. Download the appropriate rpm file from the files below
  2. Install rlwrap to your linux machine.
    # rpm -ivh rlwrap-0.42-1.el5.x86_64.rpm

    In case of Redhat 6 or similar series like CentOS
    # rpm -ivh rlwrap-0.42-1.el6.x86_64.rpm

  3. Have your program follow rlwrap
    # rlwrap nslookup
  4. Edit the command line with the left/right arrow or call the command history with the up/down arrow.

    See also, 
    http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap
    http://en.wikipedia.org/wiki/GNU_Readline




  






Related content

cmd history [1]
cmd history [1]
More like this
How to enter multiple lines of unix shell in the compose bar [1]
How to enter multiple lines of unix shell in the compose bar [1]
More like this
xshell [1]
xshell [1]
More like this
Feature Request: [1]
Feature Request: [1]
More like this
Scroll Buffer lines [8]
Scroll Buffer lines [8]
More like this
log just the output the command
log just the output the command
More like this