GNU readline for interactive tcl shells
Clone or download
Mr-Tao and snoe925 Find tkConfig.sh from macOS stock libraries (#9)
* Find tkConfig.sh from macOS stock libraries

Tcl/Tk shipped with macOS is in two respective directories - /System/Library/Frameworks/Tcl.framework/ and /System/Library/Frameworks/Tk.framework/. Therefore it is necessary to allow to specify both Tcl and Tk paths, otherwise configure --enable-wishrl fails.

* Mimic original behavior and look for Tk libraries in $tcl_search path too
Latest commit cd13626 Jun 5, 2018
Permalink
Failed to load latest commit information.
aux repalce symlinked automake files with real files Mar 27, 2018
.cvsignore added .cvsignore Apr 8, 2001
.gitattributes Add the 'ident' attribute to all files Feb 18, 2014
.gitignore add autoconf stuff put in by libtoolize et al Dec 20, 2016
.travis.yml travis-ci: Run tests on Linux Apr 18, 2018
AUTHORS Merge branch 'master' into devel Dec 20, 2016
COPYING Harmonize file headers, indent and whitespace in all files Feb 26, 2014
ChangeLog added Massimo to AUTHORS Aug 10, 2001
INSTALL repalce symlinked automake files with real files Mar 27, 2018
Makefile.am Cleanup of compilation warnings Feb 26, 2014
NEWS 1. usable version after change to automake Jul 1, 2000
README.FreeBSD how to build for FreeBSD Dec 20, 2016
README.md Update and rename README to README.md Mar 30, 2018
SCENARIO Harmonize file headers, indent and whitespace in all files Feb 26, 2014
TODO Update meta files Mar 17, 2014
Vagrantfile Vagrantfile: Change box to debian/contrib-jessie64 Nov 24, 2016
aclocal.m4 add autoconf stuff put in by libtoolize et al Dec 20, 2016
autogen.sh Libtoolize if possible Mar 8, 2018
config.h.in updates generated by autoconf stuff Dec 20, 2016
configure.ac Find tkConfig.sh from macOS stock libraries (#9) Jun 5, 2018
pkgIndex.tcl.in Harmonize file headers, indent and whitespace in all files Feb 26, 2014
provision-vagrant-vm.sh provision-vagrant-vm.sh: Fix pkg inst; add itcl Nov 24, 2016
sample.tclshrc Merging devel to master (#3) Feb 20, 2018
tclreadline.c Fix a type mismatch and avoid overrunning a buffer (#5) Mar 8, 2018
tclreadline.h.in Style/cosmetic changes to C files Mar 17, 2014
tclreadline.n.in Harmonize file headers, indent and whitespace in all files Feb 26, 2014
tclreadlineCompleter.tcl tclreadlineCompleter.tcl: Detect TclOO for [info] Nov 24, 2016
tclreadlineInit.tcl.in Harmonize style in all Tcl files Mar 17, 2014
tclreadlineSetup.tcl.in Merging devel to master (#3) Feb 20, 2018
tclshrl.c Style/cosmetic changes to C files Mar 17, 2014
tests.tcl tests.tcl: Run tests in [info nameofexecutable] Nov 24, 2016
wishrl.c Style/cosmetic changes to C files Mar 17, 2014

README.md

Build Status

tclreadline -- gnu readline for tcl

Copyright (c) 1998 - 2014, Johannes Zellner johannes@zellner.org This software is copyright under the BSD license.

tclreadline

Introduction

This directory contains the sources and documentation for tclreadline, which builds a connection between tcl and the gnu readline.

Documentation

The tclreadline.n nroff man page in this release contains the reference manual entries for tclreadline. If you only want to use tclreadline as a tool for interactive script development, you don't have to read this manual page at all. Simply change your .tclshrc according to the section later in this file.

Compiling and installing tclreadline

This release will probably only build under UNIX (Linux).

Before trying to compile tclreadline you should do the following things:

  1. Make sure you have tcl 8.0 or higher. tclreadline relies on a proper tcl installation: It uses the tclConfig.sh file, which should reside somewhere in /usr/local/lib/ or /usr/local/lib/tcl8.0/...

  2. Make sure you have gnu readline 2.2 or higher. tclreadline uses the gnu readline callback handler, which wasn't implemented in early releases.

  3. The usual ./configure; make; make install sequence should do the rest.

  4. Optionally (or additionally) you can build the executables tclshrl and / or wishrl which are a readline enhanced replacement for tclsh and wish. To compile these executable you should type

     ./configure --enable-tclshrl --enable-wishrl
    

    (or one of these if you want just tclshrl or wishrl). NOTE that these executables need an installed version of tclreadline because they need some script files to run so you can't test tclshrl/wishrl before installing the tclreadline scripts.

    Building statically linked executables is DISCOURAGED but necessary on systems which don't support shared libs.

Using tclreadline for interactive tcl scripting.

copy the sample.tclshrc to $HOME/.tclshrc. If you use another interpreter like wish, you should copy the file sample.tclshrc to $HOME/.wishrc (or whatever the manual page of your interpreter says.) If you have installed tclreadline properly, you are just ready to start: start your favorite interpreter. The tclreadlineSetup.tcl script does the rest.