File: cle.1

package info (click to toggle)
cle 0.4-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,696 kB
  • ctags: 1,203
  • sloc: ansic: 15,187; sh: 2,803; perl: 1,730; makefile: 714
file content (107 lines) | stat: -rw-r--r-- 2,439 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.de EX		\"Begin example
.ne 5
.if n .sp 1
.if t .sp .5
.nf
.in +.5i
\fC
..
.de EE
.fi
.in -.5i
.if n .sp 1
.if t .sp .5
\fR
..
.TH cle 1 "October 1999" 

.SH NAME
\fBcle\fP \-  \fBC\fRommand \fBL\fRine \fBE\fRditor

.SH SYNOPSYS
\fBcle\fP [options] <program> [\fB<arguments>\fP]

.SH DESCRIPTION
Cle is a Command Line Editor. It provides the
editing/history/completion commands of the \fBreadline(3)\fR package
to any line-oriented Unix command. For instance,
.EX 
$ cle ftp foo.bar.org
.EE
provides editing/history/completion commands to the ftp command.
.LP
Since most modern shells allow you to define aliases, you can define 
a simple alias such as 
.EX
$ alias ftp="cle \\ftp" (bash or zsh syntax)
.EE
or 
.EX
$ alias ftp cle ftp (tcsh or csh syntax)
.EE
to always uses cle with the ftp command.

.SH OPTIONS

The following options are recognized by \fBcle\fR:

.TP
\fB\-v\fR, \fB\-\-version\fR
output version information and exit.

.TP
\fB\-s\fR N, \fB--size=\fRN
set the size of the history to n lines. If n > 0 the history is saved
at program exit. Default size is 100.


.SH FILES

.IP \fI~/.inputrc\fR
Since cle uses the readline package, it can be customized by the file
"~/.inputrc". When cle is run it initializes the readline package and
gives it the name of the application it controls. This can be used to
define different bindings for different commands. An example is given
below:
.EX
$if ftp
"\\C-xl": "dir\\C-m"
$endif
$if stk
"\\C-xl": "(system \\"ls -ls\\")\\C-m"
$endif
$if ed
"\\C-x-l": "!ls -l\\C-m"
$endif
.EE
See the file "src/sample-inputrc" file for a more complete example.
See also standard readline documentation package for details on the
available "bindable" functions and on the format of this file.

.br 
\fIPARENTHESIS FLASHING\fR
.br
The readline version compiled with \fBcle\fR uses parentheses flashing
(i.e when you type a closing parenthesis, the corresponding opening
parenthesis flashes). Rebind the closing parentheses is with
"self-insert" to get rid of this feature.
.br
Example: 
.EX
$if ftp 
")": self-insert 
"]": self-insert 
"}": self-insert 
$end
.EE

.IP \fI~/.XXX-history\fR
When a cle'ed application leaves, the state of the history is saved in
a file whose name is ~/.XXX-history, where XXX is the name of the
application. If the size is of the history is 0, the history file 
is deleted. This avoids the accumulation of file in the 
user home directory.

.SH SEE ALSO
readline(3)