views:

159

answers:

2

I am new to TCL and I wanted to know, if I can get the command history by using cursor key (like up arrow key) in TCL shell (tclsh).
I am running tclsh on fedora with linux version 2.6.21.

+2  A: 

You want access to the readline library. Here's one way: rlwrap

glenn jackman
thanks glenn , what a nice fix .
Adi
hi glenn, you are a big TCL fan , I like TCL and want to explore more about the language so that I can use it in my work. Can you suggest me some links or books to learn TCL ?
Adi
@Adi: Ask that in another question. That's the way this site works.
Donal Fellows
@Adi, you probably want to go through the Tcl tutorial: http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html
glenn jackman
+2  A: 

I usually use tkcon which comes with ActiveTcl, or as a separate installation. tkcon has many features, but the one I use the most is the command-line editing aspect.

Hai Vu
how do i use tkcon to use the feature..can u tell me the command..
Adi
thanks vu tkcon was a nice suggestion.. I used it in ubuntu but getting some error "Application initialization failed: no display name and no $DISPLAY environment variable"when i use in fedora
Adi