blob: 185227dcdb039007f5e58ac1c6ff94920056d872 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301.\"***************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -04002.\" Copyright 2018-2023,2024 Thomas E. Dickey *
3.\" Copyright 1998-2016,2017 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304.\" *
5.\" Permission is hereby granted, free of charge, to any person obtaining a *
6.\" copy of this software and associated documentation files (the *
7.\" "Software"), to deal in the Software without restriction, including *
8.\" without limitation the rights to use, copy, modify, merge, publish, *
9.\" distribute, distribute with modifications, sublicense, and/or sell *
10.\" copies of the Software, and to permit persons to whom the Software is *
11.\" furnished to do so, subject to the following conditions: *
12.\" *
13.\" The above copyright notice and this permission notice shall be included *
14.\" in all copies or substantial portions of the Software. *
15.\" *
16.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
24.\" Except as contained in this notice, the name(s) of the above copyright *
25.\" holders shall not be used in advertising or otherwise to promote the *
26.\" sale, use or other dealings in this Software without prior written *
27.\" authorization. *
28.\"***************************************************************************
29.\"
micky3879b9f5e72025-07-08 18:04:53 -040030.\" $Id: tset.1,v 1.85 2024/04/27 17:57:47 tom Exp $
31.TH @TSET@ 1 2024-04-27 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "User commands"
32.ie \n(.g \{\
33.ds `` \(lq
34.ds '' \(rq
35.ds ^ \(ha
36.\}
37.el \{\
38.ie t .ds `` ``
39.el .ds `` ""
40.ie t .ds '' ''
41.el .ds '' ""
42.ds ^ ^
43.\}
44.
45.de bP
46.ie n .IP \(bu 4
47.el .IP \(bu 2
48..
49.
50.ds d @TERMINFO@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053051.SH NAME
micky3879b9f5e72025-07-08 18:04:53 -040052\fB\%@TSET@\fP,
53\fB\%@RESET@\fP \-
54initialize or reset terminal state
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053055.SH SYNOPSIS
micky3879b9f5e72025-07-08 18:04:53 -040056\fB@TSET@\fP [\fB\-IQVcqrsw\fP] [\fB\-\fP] [\fB\-e\fP \fIch\fP] [\fB\-i\fP \fIch\fP] [\fB\-k\fP \fIch\fP] [\fB\-m\fP \fImapping\fP] [\fIterminal-type\fP]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053057.br
micky3879b9f5e72025-07-08 18:04:53 -040058\fB@RESET@\fP [\fB\-IQVcqrsw\fP] [\fB\-\fP] [\fB\-e\fP \fIch\fP] [\fB\-i\fP \fIch\fP] [\fB\-k\fP \fIch\fP] [\fB\-m\fP \fImapping\fP] [\fIterminal-type\fP]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053059.SH DESCRIPTION
micky3879b9f5e72025-07-08 18:04:53 -040060.SS "\fItset\fP \(em initialization"
61This program initializes terminals.
62.PP
63First, \fB@TSET@\fP retrieves the current terminal mode settings
64for your terminal.
65It does this by successively testing
66.bP
67the standard error,
68.bP
69standard output,
70.bP
71standard input and
72.bP
73ultimately \*(``/dev/tty\*(''
74.PP
75to obtain terminal settings.
76Having retrieved these settings, \fB@TSET@\fP remembers which
77file descriptor to use when updating settings.
78.PP
79Next, \fB@TSET@\fP determines the type of terminal that you are using.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053080This determination is done as follows, using the first terminal type found.
81.PP
micky3879b9f5e72025-07-08 18:04:53 -0400821. The \fBterminal\fP argument specified on the command line.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053083.PP
micky3879b9f5e72025-07-08 18:04:53 -0400842. The value of the \fITERM\fP environment variable.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053085.PP
863. (BSD systems only.) The terminal type associated with the standard
micky3879b9f5e72025-07-08 18:04:53 -040087error output device in the \fI/etc/ttys\fP file.
88(On System\ V hosts and systems using that convention,
89\fI\%getty\fP(8) does this job by setting
90\fITERM\fP according to the type passed to it by \fI\%/etc/inittab\fP.)
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053091.PP
micky3879b9f5e72025-07-08 18:04:53 -0400924. The default terminal type, \*(``unknown\*('',
93is not suitable for curses applications.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053094.PP
micky3879b9f5e72025-07-08 18:04:53 -040095If the terminal type was not specified on the command-line, the \fB\-m\fP
96option mappings are then applied;
97see subsection \*(``Terminal Type Mapping\*(''.
Steve Kondikae271bc2015-11-15 02:50:53 +010098Then, if the terminal type begins with a question mark (\*(``?\*(''), the
micky3879b9f5e72025-07-08 18:04:53 -040099user is prompted for confirmation of the terminal type.
100An empty
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530101response confirms the type, or, another type can be entered to specify
micky3879b9f5e72025-07-08 18:04:53 -0400102a new type.
103Once the terminal type has been determined,
104the terminal description for the terminal is retrieved.
105If no terminal description is found
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530106for the type, the user is prompted for another terminal type.
107.PP
micky3879b9f5e72025-07-08 18:04:53 -0400108Once the terminal description is retrieved,
109.bP
110if the \*(``\fB\-w\fP\*('' option is enabled, \fB@TSET@\fP may update
111the terminal's window size.
112.IP
113If the window size cannot be obtained from the operating system,
114but the terminal description
115(or environment,
116e.g.,
117\fILINES\fP and \fI\%COLUMNS\fP variables specify this),
118use this to set the operating system's notion of the window size.
119.bP
120if the \*(``\fB\-c\fP\*('' option is enabled,
121the backspace, interrupt and line kill characters
122(among many other things) are set
123.bP
124unless the \*(``\fB\-I\fP\*('' option is enabled,
125the terminal
126and tab \fIinitialization\fP strings are sent to the standard error output,
127and \fB@TSET@\fP waits one second (in case a hardware reset was issued).
128.bP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530129Finally, if the erase, interrupt and line kill characters have changed,
130or are not set to their default values, their values are displayed to the
131standard error output.
micky3879b9f5e72025-07-08 18:04:53 -0400132.SS "\fIreset\fP \(em reinitialization"
133When invoked as \fB@RESET@\fP, \fB@TSET@\fP sets the terminal
134modes to \*(``sane\*('' values:
135.bP
136sets cooked and echo modes,
137.bP
138turns off cbreak and raw modes,
139.bP
140turns on newline translation and
141.bP
142resets any unset special characters to their default values
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530143.PP
micky3879b9f5e72025-07-08 18:04:53 -0400144before
145doing the terminal initialization described above.
146Also, rather than using the terminal \fIinitialization\fP strings,
147it uses the terminal \fIreset\fP strings.
148.PP
149The \fB@RESET@\fP command is useful
150after a program dies leaving a terminal in an abnormal state:
151.bP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530152you may have to type
153.sp
micky3879b9f5e72025-07-08 18:04:53 -0400154 \fI<LF>\fB@RESET@\fI<LF>\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530155.sp
156(the line-feed character is normally control-J) to get the terminal
157to work, as carriage-return may no longer work in the abnormal state.
micky3879b9f5e72025-07-08 18:04:53 -0400158.bP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530159Also, the terminal will often not echo the command.
micky3879b9f5e72025-07-08 18:04:53 -0400160.SS "Setting the Environment"
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530161It is often desirable to enter the terminal type and information about
162the terminal's capabilities into the shell's environment.
micky3879b9f5e72025-07-08 18:04:53 -0400163This is done using the \fB\-s\fP option.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530164.PP
micky3879b9f5e72025-07-08 18:04:53 -0400165When the \fB\-s\fP option is specified, the commands to enter the information
166into the shell's environment are written to the standard output.
167If the \fISHELL\fP environment variable ends in \*(``csh\*('',
168the commands
169are for \fIcsh\fP(1),
170otherwise,
171they are for \fIsh\fP(1).
172The \fIcsh\fP commands set and unset the shell variable \fBnoglob\fP,
173leaving it unset.
174The following line in the \fB.login\fP
175or \fB.profile\fP files will initialize the environment correctly:
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530176.sp
micky3879b9f5e72025-07-08 18:04:53 -0400177 eval \(ga@TSET@ \-s options ... \(ga
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530178.
micky3879b9f5e72025-07-08 18:04:53 -0400179.SS "Terminal Type Mapping"
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530180When the terminal is not hardwired into the system (or the current
181system information is incorrect) the terminal type derived from the
micky3879b9f5e72025-07-08 18:04:53 -0400182\fI/etc/ttys\fP file or the \fITERM\fP environment variable is often
183something generic like \fBnetwork\fP, \fBdialup\fP, or \fBunknown\fP.
184When \fB@TSET@\fP is used in a startup script it is often desirable to
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530185provide information about the type of terminal used on such ports.
186.PP
micky3879b9f5e72025-07-08 18:04:53 -0400187The \fB\-m\fP options maps
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530188from some set of conditions to a terminal type, that is, to
micky3879b9f5e72025-07-08 18:04:53 -0400189tell \fB@TSET@\fP
Steve Kondikae271bc2015-11-15 02:50:53 +0100190\*(``If I'm on this port at a particular speed,
191guess that I'm on that kind of terminal\*(''.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530192.PP
micky3879b9f5e72025-07-08 18:04:53 -0400193The argument to the \fB\-m\fP option consists of an optional port type, an
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530194optional operator, an optional baud rate specification, an optional
micky3879b9f5e72025-07-08 18:04:53 -0400195colon (\*(``:\*('') character and a terminal type.
196The port type is a
Steve Kondikae271bc2015-11-15 02:50:53 +0100197string (delimited by either the operator or the colon character).
198The operator may be any combination of
199\*(``>\*('',
200\*(``<\*('',
201\*(``@\*('',
202and \*(``!\*('';
203\*(``>\*('' means greater than,
204\*(``<\*('' means less than,
205\*(``@\*('' means equal to and
206\*(``!\*('' inverts the sense of the test.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530207The baud rate is specified as a number and is compared with the speed
208of the standard error output (which should be the control terminal).
209The terminal type is a string.
210.PP
micky3879b9f5e72025-07-08 18:04:53 -0400211If the terminal type is not specified on the command line, the \fB\-m\fP
212mappings are applied to the terminal type.
213If the port type and baud
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530214rate match the mapping, the terminal type specified in the mapping
micky3879b9f5e72025-07-08 18:04:53 -0400215replaces the current type.
216If more than one mapping is specified, the
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530217first applicable mapping is used.
218.PP
micky3879b9f5e72025-07-08 18:04:53 -0400219For example, consider the following mapping: \fBdialup>9600:vt100\fP.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530220The port type is dialup , the operator is >, the baud rate
micky3879b9f5e72025-07-08 18:04:53 -0400221specification is 9600, and the terminal type is vt100.
222The result of
223this mapping is to specify that if the terminal type is \fBdialup\fP,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530224and the baud rate is greater than 9600 baud, a terminal type of
micky3879b9f5e72025-07-08 18:04:53 -0400225\fBvt100\fP will be used.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530226.PP
227If no baud rate is specified, the terminal type will match any baud rate.
228If no port type is specified, the terminal type will match any port type.
micky3879b9f5e72025-07-08 18:04:53 -0400229For example, \fB\-m dialup:vt100 \-m :?xterm\fP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530230will cause any dialup port, regardless of baud rate, to match the terminal
231type vt100, and any non-dialup port type to match the terminal type ?xterm.
232Note, because of the leading question mark, the user will be
233queried on a default port as to whether they are actually using an xterm
234terminal.
235.PP
micky3879b9f5e72025-07-08 18:04:53 -0400236No whitespace characters are permitted in the \fB\-m\fP option argument.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530237Also, to avoid problems with meta-characters, it is suggested that the
micky3879b9f5e72025-07-08 18:04:53 -0400238entire \fB\-m\fP option argument be placed within single quote characters,
239and that \fIcsh\fP users insert a backslash character (\*(``\e\*('')
240before any exclamation marks (\*(``!\*('').
241.SH OPTIONS
242The options are as follows:
243.TP 5
244.B \-c
245Set control characters and modes.
246.TP 5
247.BI \-e\ ch
248Set the erase character to \fIch\fP.
249.TP
250.B \-I
251Do not send the terminal or tab initialization strings to the terminal.
252.TP
253.BI \-i\ ch
254Set the interrupt character to \fIch\fP.
255.TP
256.BI \-k\ ch
257Set the line kill character to \fIch\fP.
258.TP
259.BI \-m\ mapping
260Specify a mapping from a port type to a terminal;
261see subsection \*(``Terminal Type Mapping\*(''.
262.TP
263.B \-Q
264Do not display any values for the erase, interrupt and line kill characters.
265Normally \fB@TSET@\fP displays the values for control characters which
266differ from the system's default values.
267.TP
268.B \-q
269The terminal type is displayed to the standard output, and the terminal is
270not initialized in any way.
271The option \*(``\-\*('' by itself is equivalent but archaic.
272.TP
273.B \-r
274Print the terminal type to the standard error output.
275.TP
276.B \-s
277Print the sequence of shell commands to initialize the environment variable
278\fITERM\fP to the standard output;
279see subsection \*(``Setting the Environment\*(''.
280.TP
281.B \-V
282reports the version of \fI\%ncurses\fP which was used in this program,
283and exits.
284.TP
285.B \-w
286Resize the window to match the size deduced via \fBsetupterm\fP(3X).
287Normally this has no effect,
288unless \fBsetupterm\fP is not able to detect the window size.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530289.PP
micky3879b9f5e72025-07-08 18:04:53 -0400290The arguments for the \fB\-e\fP, \fB\-i\fP, and \fB\-k\fP
291options may either be entered as actual characters
292or by using the \*(``hat\*(''
293notation, i.e., control-h may be specified as \*(``\*^H\*('' or \*(``\*^h\*(''.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530294.PP
micky3879b9f5e72025-07-08 18:04:53 -0400295If neither \fB\-c\fP or \fB\-w\fP is given, both options are assumed.
296.SH ENVIRONMENT
297The \fB@TSET@\fP command uses these environment variables:
298.TP 5
299.I SHELL
300tells \fB@TSET@\fP whether to initialize \fITERM\fP using \fIsh\fP(1) or
301\fIcsh\fP(1) syntax.
302.TP 5
303.I TERM
304Denotes your terminal type.
305Each terminal type is distinct, though many are similar.
306.TP 5
307.I TERMCAP
308may denote the location of a termcap database.
309If it is not an absolute pathname, e.g., begins with a \*(``/\*('',
310\fB@TSET@\fP removes the variable from the environment before looking
311for the terminal description.
312.SH FILES
313.TP
314.I /etc/ttys
315system port name to terminal type mapping database (BSD versions only).
316.TP
317.I \*d
318compiled terminal description database directory
319.SH PORTABILITY
320Neither IEEE Std 1003.1/The Open Group Base Specifications Issue 7
321(POSIX.1-2008) nor
322X/Open Curses Issue 7 documents \fB@TSET@\fP or \fB@RESET@\fP.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530323.PP
micky3879b9f5e72025-07-08 18:04:53 -0400324The AT&T \fBtput\fP utility (AIX, HP-UX, Solaris)
325incorporated the terminal-mode manipulation as well as termcap-based features
326such as resetting tabstops from \fBtset\fP in BSD (4.1c),
327presumably with the intention of making \fBtset\fP obsolete.
328However, each of those systems still provides \fBtset\fP.
329In fact, the commonly-used \fBreset\fP utility
330is always an alias for \fBtset\fP.
331.PP
332The \fB\%@TSET@\fP utility provides backward compatibility with BSD
333environments;
334under most modern Unices,
335\fI\%/etc/inittab\fP and \fI\%getty\fP(8) can set \fITERM\fP
336appropriately for each dial-up line,
337obviating what was \fB\%@TSET@\fP's most important use.
338This implementation behaves like 4.4BSD \fBtset\fP,
339with a few exceptions we shall consider now.
340.PP
341A few options are different
342because the \fI\%TERMCAP\fP variable
343is no longer supported under terminfo-based \fI\%ncurses\fP:
344.bP
345The \fB\-S\fP option of BSD \fBtset\fP no longer works;
346it prints an error message to the standard error and dies.
347.bP
348The \fB\-s\fP option only sets \fITERM\fP,
349not \fI\%TERMCAP\fP.
350.PP
351There was an undocumented 4.4BSD feature
352that invoking \fBtset\fP via a link named
353\*(``TSET\*('' (or via any other name beginning with an upper-case letter)
354set the terminal to use upper-case only.
355This feature has been omitted.
356.PP
357The \fB\-A\fP, \fB\-E\fP, \fB\-h\fP, \fB\-u\fP and \fB\-v\fP
358options were deleted from the \fB@TSET@\fP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530359utility in 4.4BSD.
360None of them were documented in 4.3BSD and all are
361of limited utility at best.
micky3879b9f5e72025-07-08 18:04:53 -0400362The \fB\-a\fP, \fB\-d\fP, and \fB\-p\fP options are similarly
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530363not documented or useful, but were retained as they appear to be in
micky3879b9f5e72025-07-08 18:04:53 -0400364widespread use.
365It is strongly recommended that any usage of these
366three options be changed to use the \fB\-m\fP option instead.
367The \fB\-a\fP, \fB\-d\fP, and \fB\-p\fP options
368are therefore omitted from the usage summary above.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530369.PP
micky3879b9f5e72025-07-08 18:04:53 -0400370Very old systems, e.g., 3BSD, used a different terminal driver which
371was replaced in 4BSD in the early 1980s.
372To accommodate these older systems, the 4BSD \fB@TSET@\fP provided a
373\fB\-n\fP option to specify that the new terminal driver should be used.
374This implementation does not provide that choice.
375.PP
376It is still permissible to specify the \fB\-e\fP, \fB\-i\fP,
377and \fB\-k\fP options without arguments,
Steve Kondikae271bc2015-11-15 02:50:53 +0100378although it is strongly recommended that such usage be fixed to
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530379explicitly specify the character.
380.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100381As of 4.4BSD,
micky3879b9f5e72025-07-08 18:04:53 -0400382executing \fB@TSET@\fP as \fB@RESET@\fP no longer implies the \fB\-Q\fP option.
383Also, the interaction between the \- option and the \fIterminal\fP
384argument in some historic implementations of \fB@TSET@\fP has been removed.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530385.PP
micky3879b9f5e72025-07-08 18:04:53 -0400386The \fB\-c\fP and \fB\-w\fP options are not found in earlier implementations.
387However, a different window size-change feature was provided in 4.4BSD.
388.bP
389In 4.4BSD, \fBtset\fP uses the window size from the termcap description
390to set the window size if \fBtset\fP is not able to obtain the window
391size from the operating system.
392.bP
393In \fI\%ncurses\fP, \fB@TSET@\fP obtains the window size using
394\fB\%setupterm\fP(3X), which may be from
395the operating system,
396the \fILINES\fP and \fICOLUMNS\fP environment variables or
397the terminal description.
398.PP
399Obtaining the window size from a terminal's type description is common
400to both implementations,
401but considered obsolescent.
402Its only practical use is for hardware terminals.
403Generally,
404the window size will remain uninitialized only if there were a problem
405obtaining the value from the operating system
406(and \fB\%setupterm\fP would still fail).
407The \fILINES\fP and \fI\%COLUMNS\fP environment variables
408may thus be useful for working around window-size problems,
409but have the drawback that if the window is resized,
410their values must be recomputed and reassigned.
411The \fI\%resize\fP(1) program distributed with
412\fI\%xterm\fP(1) assists this activity.
413.SH HISTORY
414A \fB\%reset\fP command written by Kurt Shoens appeared in 1BSD
415(March 1978).
416.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=1BSD/s6/reset.c
417It set the \fIerase\fP and \fIkill\fP characters
418to \fB\*^H\fP (backspace) and \fB@\fP respectively.
419Mark Horton improved this \fB\%reset\fP in 3BSD
420(October 1979),
421adding \fIintr\fP,
422\fIquit\fP,
423\fIstart\fP/\fIstop\fP,
424and \fIeof\fP
425characters as well as changing the program to avoid modifying any user
426settings.
427.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/cmd/\
428.\" reset.c
429That version of \fB\%reset\fP did not use \fI\%termcap\fP.
430.PP
431Eric Allman wrote a distinct \fBtset\fP command for 1BSD,
432using a forerunner of \fI\%termcap\fP called \fI\%ttycap\fP.
433.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=1BSD/s6/tset.c
434.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=1BSD/man7/ttycap.7
435Allman's comments in the source code indicate
436that he began work in October 1977,
437continuing development over the next few years.
438By late 1979,
439it had migrated to \fI\%termcap\fP and handled the \fI\%TERMCAP\fP
440variable.
441.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/cmd/\
442.\" tset/tset.c
443Later comments indicate that \fBtset\fP was modified in September 1980
444to use logic copied from the 3BSD \*(``reset\*('' program when it was
445invoked as \fB\%reset\fP.
446.\" https://minnie.tuhs.org/cgi-bin/utree.pl?file=2.9BSD/usr/src/ucb/\
447.\" tset/tset.c
448This version appeared in 4.1cBSD, \" and backported to 2.9BSD
449late in 1982.
450Other developers such as Keith Bostic and Jim Bloom continued to modify
451\fBtset\fP until 4.4BSD was released in 1993.
452.PP
453The \fI\%ncurses\fP implementation was lightly adapted from the 4.4BSD
454sources to use the \fI\%terminfo\fP API by Eric S.\& Raymond
455<esr@snark.thyrsus.com>.
456.SH SEE ALSO
457\fB\%csh\fP(1),
458\fB\%sh\fP(1),
459\fB\%stty\fP(1),
460\fB\%curs_terminfo\fP(3X),
461\fB\%tty\fP(4),
462\fB\%terminfo\fP(5),
463\fB\%ttys\fP(5),
464\fB\%environ\fP(7)