Tcl: readline functionality
Contents
Problem
When in tclsh, I want to use readline features like command line editing, history browsing and command completion.
Solutions
- tclreadline
- Package for tclsh
- Enhanced Tk Console: tkcon
- GUI console, last full release on 20070609: v2.4, 2004-07-24
Journal
20090213
eltclsh is giving me error: Internal Server Error.
Trying tclreadline.
20070609
Installing `eltclsh' on Ubuntu, the short version:
sudo apt-get install build-essential tcl8.4-dev tk8.4-dev libedit-dev checkinstall ./configure make checkinstall
Installing `eltclsh' on Ubuntu, the long version:
# To prevent configure error: C compiler cannot create executables sudo apt-get install build-essential # To prevent configure error: Please use --with-tcl to specify a valid path to your tclConfig.sh file sudo apt-get install tcl8.4-dev # To prevent configure error: ./configure: line 20724: /tkConfig.sh: No such file or directory sudo apt-get install tk8.4-dev # To prevent configure error: checking for libedit headers... not found (fatal) sudo apt-get install libedit-dev # To generate a removable Debian package instead of a direct install sudo apt-get install checkinstall ./configure make checkinstall
20060523
Why is keyboard entry in Tcl so crude:
So I should try eltclsh? Freshmeat.net lags behind with version 1.5. Main site provides version 1.6.
Trying to install editline.
configure: error: no relevant library found containing tgetent
Installed termcap-2.0.8. Still error.
Installed ncurses-devel-5.4. Ah, this fixes the error.
Trying to install eltclsh-1.6. Configure error:
checking for tclConfig.sh... not found (fatal) Please use --with-tcl to specify a valid path to your tclConfig.sh file
Installed tcl-devel-8.4.11. Fixes error. Next configure error:
checking for tcl library... /usr/lib/libtcl8.4.so ./configure: line 21722: /tkConfig.sh: No such file or directory
Installed tk-devel-8.4.11. Fixes error. Make error:
In file included from elwish.c:36: /usr/include/tk.h:96:23: error: X11/Xlib.h: No such file or directory
Installed xorg-x11-devel-6.8.2. Fixes error.
20060402
Found a tcl readline package.
Installed YaST - tcllib; it's not there.
Installed YaST - tclx; it's not there.