Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Add readline support to Tiger's python' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Add readline support to Tiger's python
Authored by: juanfal on Jan 12, '07 10:33:24AM
You always can use rlwrap:
rlwrap 
Usage: rlwrap [options] command ...

Options:
   -a, --always-readline[=password:] 
   -b, --break-chars 
   -c, --complete-filenames
   -C, --command-name 
   -f, --file 
   -h, --help
   -l, --logfile 
   -n, --no-warnings
   -r, --remember
   -v, --version
   -s, --histsize 

bug reports, suggestions, updates:
http://utopia.knoware.nl/~hlub/uck/rlwrap/
with any line interpreter.
% port info rlwrap
rlwrap 0.24, sysutils/rlwrap
http://utopia.knoware.nl/~hlub/uck/rlwrap/

rlwrap is a 'readline wrapper' that uses the GNU readline library to allow the editing of keyboard input for any other command.

Library Dependencies: readline
Platforms: darwin
Maintainers: lomion@mac.com
: I have defined:
alias irb 'rlwrap irb'
and many similar others, so I can easily edit Ruby code, for example:
% irb
irb(main):001:0> 5.times { p "Hola" }
"Hola"
"Hola"
"Hola"
"Hola"
"Hola"
=> 5
irb(main):002:0> 


[ Reply to This | # ]