Add readline and completion support to tclsh.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 29 Aug 2013 23:05:56 +0300
changeset 632 500dcbf3445d
parent 631 fca1f671308a
child 633 ef2436c18276
Add readline and completion support to tclsh.
.tclshrc
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.tclshrc	Thu Aug 29 23:05:56 2013 +0300
@@ -0,0 +1,6 @@
+# -*- mode: tcl -*-
+
+if {$tcl_interactive} {
+    package require tclreadline
+    ::tclreadline::Loop
+}
--- a/Makefile	Thu Aug 08 15:42:20 2013 +0300
+++ b/Makefile	Thu Aug 29 23:05:56 2013 +0300
@@ -43,7 +43,7 @@
     .fvwm .xxkbrc .xmodmaprc .fonts.conf \
     .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \
     .bashrc .bashenv .bash_completion .zshrc .vimrc .ssh \
-    .pylintrc .pystartup \
+    .pylintrc .pystartup .tclshrc \
     .guile \
     .sqshrc \
     .signature .muttrc .tidy \