Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I navigate text in a terminal lisp-scheme interpreter?

When I run the Scheme interpreter in my terminal [Ubuntu 10.04], I can't seem to navigate through text and must delete and retype everything if I make a mistake. I'm sure there must be a way to navigate through the text without having to delete everything (although it's good practice)

Left, right, up, down give me ^[[$LETTER where $LETTER is D, C, A, B respectively

like image 819
zallarak Avatar asked Jan 08 '12 23:01

zallarak


1 Answers

sudo apt-get install rlwrap

then

rlwrap whatever

to give whatever the readline editing capabilities. Replace whatever with any executable you need (don't know which Scheme dialect you're rocking)

You can also probably make a shell alias for it, in .bash_profile or .bashrc or wherever:

alias whatever="rlwrap whatever"

to have it permanently on.

like image 102
Amadan Avatar answered Oct 13 '22 05:10

Amadan