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.
views:
159answers:
2
+2
A:
You want access to the readline library. Here's one way: rlwrap
glenn jackman
2010-06-15 02:43:04
thanks glenn , what a nice fix .
Adi
2010-06-15 18:23:03
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
2010-06-15 19:15:24
@Adi: Ask that in another question. That's the way this site works.
Donal Fellows
2010-06-15 21:54:31
@Adi, you probably want to go through the Tcl tutorial: http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html
glenn jackman
2010-06-15 22:45:01
+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
2010-06-15 21:50:02
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
2010-06-16 05:16:37