File: README.md

package info (click to toggle)
tclreadline 2.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,848 kB
  • sloc: tcl: 5,697; sh: 4,217; ansic: 720; makefile: 80
file content (71 lines) | stat: -rw-r--r-- 2,549 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[![Build Status](https://travis-ci.org/flightaware/tclreadline.svg?branch=master)](https://travis-ci.org/flightaware/tclreadline)

# 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.