Why can't I use the left and right arrow keys (actually, the same goes for the up and down keys as well) to move about the line I'm currently on in the tclsh
interactive shell? If I try to press either one, I get a bunch of abracadabra instead of moving back and forth. This is not all that convenient when, for example, you make a typo, but you can't move the cursor back to change it. You have to use the backspace key to erase all the stuff that you've typed after the place where the typo is located thereby destroying all your work. Is it possible to fix this, quite frankly, buggy behaviour?
This functionality appears to be provided by the
tcl-tclreadline
package. Fromapt-cache show tcl-tclreadline
:Once you have installed the package, either from the Software Center or via the command line using
sudo apt-get install tcl-tclreadline
, you can enable it for interactive tcl shells by addingto your
$HOME/.tclshrc
file as explained on the tclreadline project homepage.