1enhance(1) User Commands enhance(1)
2
3
4
6 enhance - enhanced command-line editing facilities
7
9 enhance command [argument]...
10
11
13 The enhance program provides enhanced command-line editing facilities
14 to users of third party applications, to which one doesn't have any
15 source code. It does this by placing a pseudo-terminal between the
16 application and the real terminal. It uses the tecla command-line edit‐
17 ing library to read input from the real terminal, then forwards each
18 just completed input line to the application via the pseudo-terminal.
19 All output from the application is forwarded back unchanged to the real
20 terminal.
21
22
23 Whenever the application stops generating output for more than a tenth
24 of a second, the enhance program treats the latest incomplete output
25 line as the prompt, and re-displays any incompleted input line that the
26 user has typed after it. The small delay, which is imperceptible to the
27 user, isn't necessary for correct operation of the program. It is just
28 an optimization, designed to stop the input line from being re-dis‐
29 played so often that it slows down output.
30
31
32 The user-level command-line editing facilities provided by the Tecla
33 library are documented in the tecla(5) man page
34
35 DEFICIENCIES
36 The one major problem that hasn't been solved yet, is how to deal with
37 applications that change whether typed input is echo'd by their con‐
38 trolling terminal. For example, programs that ask for a password, such
39 as ftp and telnet, temporarily tell their controlling terminal not to
40 echo what the user types. Since this request goes to the application
41 side of the pseudo terminal, the enhance program has no way of knowing
42 that this has happened, and continues to echo typed input to its con‐
43 trolling terminal, while the user types their password.
44
45
46 Furthermore, before executing the host application, the enhance program
47 initially sets the pseudo terminal to noecho mode, so that everything
48 that it sends to the program doesn't get redundantly echoed. If a pro‐
49 gram that switches to noecho mode explicitly restores echoing after‐
50 wards, rather than restoring the terminal modes that were previously in
51 force, then subsequently, every time that you enter a new input line, a
52 duplicate copy will be displayed on the next line.
53
55 /usr/lib/libtecla.so tecla library
56
57
58 ~/.teclarc tecla personal customization file.
59
60
62 See attributes(5) for descriptions of the following attributes:
63
64
65
66
67 ┌─────────────────────────────┬─────────────────────────────┐
68 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
69 ├─────────────────────────────┼─────────────────────────────┤
70 │Availability │SUNWesu │
71 ├─────────────────────────────┼─────────────────────────────┤
72 │Interface Stability │Evolving │
73 └─────────────────────────────┴─────────────────────────────┘
74
76 libtecla(3LIB), attributes(5), tecla(5)
77
78
79
80SunOS 5.11 18 May 2004 enhance(1)