14 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
15 .\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
16 .\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
17 .\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
18 .\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19 .\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
20 .\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 .\"
22 .\" Except as contained in this notice, the name of a copyright holder
23 .\" shall not be used in advertising or otherwise to promote the sale, use
24 .\" or other dealings in this Software without prior written authorization
25 .\" of the copyright holder.
26 .\" Portions Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
27 .TH TECLA 5 "April 9, 2016"
28 .SH NAME
29 tecla, teclarc \- User interface provided by the tecla library.
30 .SH DESCRIPTION
31 .LP
32 This man page describes the command-line editing features that are available to
33 users of programs that read keyboard input via the tecla library. Users of the
34 \fBtcsh shell\fR will find the default key bindings very familiar. Users of the
35 \fBbash\fR shell will also find it quite familiar, but with a few minor
36 differences, most notably in how forward and backward searches through the list
37 of historical commands are performed. There are two major editing modes, one
38 with \fBemacs\fR-like key bindings and another with \fBvi\fR-like key bindings.
39 By default \fBemacs\fR mode is enabled, but \fBvi\fR(1) mode can alternatively
40 be selected via the user's configuration file. This file can also be used to
41 change the bindings of individual keys to suit the user's preferences. By
42 default, tab completion is provided. If the application hasn't reconfigured
43 this to complete other types of symbols, then tab completion completes file
44 names.
45 .SS "Key Sequence Notation"
46 .LP
47 In the rest of this man page, and also in all tecla configuration files, key
48 sequences are expressed as follows.
49 .sp
50 .ne 2
51 .na
52 \fB\fB^A\fR or \fBC-a\fR\fR
53 .ad
54 .RS 13n
1482 .sp
1483 .ne 2
1484 .na
1485 \fBvi-undo\fR
1486 .ad
1487 .RS 30n
1488 In \fBvi\fR mode, undo the last editing operation.
1489 .RE
1490
1491 .sp
1492 .ne 2
1493 .na
1494 \fBvi-repeat-change\fR
1495 .ad
1496 .RS 30n
1497 In \fBvi\fR command mode, repeat the last command that modified the line.
1498 .RE
1499
1500 .SS "Default Key Bindings In \fBemacs\fR Mode"
1501 .LP
1502 The following default key bindings, which can be overriden by the tecla
1503 configuration file, are designed to mimic most of the bindings of the unix
1504 \fBtcsh shell\fR shell, when it is in \fBemacs\fR editing mode.
1505 .sp
1506 .LP
1507 This is the default editing mode of the tecla library.
1508 .sp
1509 .LP
1510 Under UNIX the terminal driver sets a number of special keys for certain
1511 functions. The tecla library attempts to use the same key bindings to maintain
1512 consistency. The key sequences shown for the following 6 bindings are thus just
1513 examples of what they will probably be set to. If you have used the stty
1514 command to change these keys, then the default bindings should match.
1515 .sp
1516 .ne 2
1517 .na
1518 \fB\fB^C\fR\fR
1519 .ad
1520 .RS 6n
1521 user-interrupt
1522 .RE
1523
1524 .sp
|
14 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
15 .\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
16 .\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
17 .\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
18 .\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19 .\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
20 .\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 .\"
22 .\" Except as contained in this notice, the name of a copyright holder
23 .\" shall not be used in advertising or otherwise to promote the sale, use
24 .\" or other dealings in this Software without prior written authorization
25 .\" of the copyright holder.
26 .\" Portions Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
27 .TH TECLA 5 "April 9, 2016"
28 .SH NAME
29 tecla, teclarc \- User interface provided by the tecla library.
30 .SH DESCRIPTION
31 .LP
32 This man page describes the command-line editing features that are available to
33 users of programs that read keyboard input via the tecla library. Users of the
34 \fBtcsh\fR shell will find the default key bindings very familiar. Users of the
35 \fBbash\fR shell will also find it quite familiar, but with a few minor
36 differences, most notably in how forward and backward searches through the list
37 of historical commands are performed. There are two major editing modes, one
38 with \fBemacs\fR-like key bindings and another with \fBvi\fR-like key bindings.
39 By default \fBemacs\fR mode is enabled, but \fBvi\fR(1) mode can alternatively
40 be selected via the user's configuration file. This file can also be used to
41 change the bindings of individual keys to suit the user's preferences. By
42 default, tab completion is provided. If the application hasn't reconfigured
43 this to complete other types of symbols, then tab completion completes file
44 names.
45 .SS "Key Sequence Notation"
46 .LP
47 In the rest of this man page, and also in all tecla configuration files, key
48 sequences are expressed as follows.
49 .sp
50 .ne 2
51 .na
52 \fB\fB^A\fR or \fBC-a\fR\fR
53 .ad
54 .RS 13n
1482 .sp
1483 .ne 2
1484 .na
1485 \fBvi-undo\fR
1486 .ad
1487 .RS 30n
1488 In \fBvi\fR mode, undo the last editing operation.
1489 .RE
1490
1491 .sp
1492 .ne 2
1493 .na
1494 \fBvi-repeat-change\fR
1495 .ad
1496 .RS 30n
1497 In \fBvi\fR command mode, repeat the last command that modified the line.
1498 .RE
1499
1500 .SS "Default Key Bindings In \fBemacs\fR Mode"
1501 .LP
1502 The following default key bindings, which can be overridden by the tecla
1503 configuration file, are designed to mimic most of the bindings of the unix
1504 \fBtcsh\fR shell, when it is in \fBemacs\fR editing mode.
1505 .sp
1506 .LP
1507 This is the default editing mode of the tecla library.
1508 .sp
1509 .LP
1510 Under UNIX the terminal driver sets a number of special keys for certain
1511 functions. The tecla library attempts to use the same key bindings to maintain
1512 consistency. The key sequences shown for the following 6 bindings are thus just
1513 examples of what they will probably be set to. If you have used the stty
1514 command to change these keys, then the default bindings should match.
1515 .sp
1516 .ne 2
1517 .na
1518 \fB\fB^C\fR\fR
1519 .ad
1520 .RS 6n
1521 user-interrupt
1522 .RE
1523
1524 .sp
|