X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Ftset.1;h=867f358d1be469e8c8b6c9052913e7fc55803e2c;hp=1c8cc3632e60e73bef469fd231d229e2e9dccd29;hb=4f10f7dff42e5348b814bdce71d3e4d925bd6ed6;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/man/tset.1 b/man/tset.1 index 1c8cc363..867f358d 100644 --- a/man/tset.1 +++ b/man/tset.1 @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright (c) 1998-2004,2005 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2008,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -26,8 +26,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: tset.1,v 1.15 2005/03/20 18:27:09 tom Exp $ -.TH tset 1 "" +.\" $Id: tset.1,v 1.22 2010/01/30 21:27:43 tom Exp $ +.TH @TSET@ 1 "" .SH NAME \fBtset\fR, \fBreset\fR - terminal initialization .SH SYNOPSIS @@ -44,8 +44,9 @@ This determination is done as follows, using the first terminal type found. 2. The value of the \fBTERM\fR environmental variable. .PP 3. (BSD systems only.) The terminal type associated with the standard -error output device in the \fI/etc/ttys\fR file. (On Linux and -System-V-like UNIXes, \fIgetty\fR does this job by setting +error output device in the \fI/etc/ttys\fR file. +(On System-V-like UNIXes and systems using that convention, +\fIgetty\fR does this job by setting \fBTERM\fR according to the type passed to it by \fI/etc/inittab\fR.) .PP 4. The default terminal type, ``unknown''. @@ -77,9 +78,9 @@ resets any unset special characters to their default values before doing the terminal initialization described above. This is useful after a program dies leaving a terminal in an abnormal state. Note, you may have to type - +.sp \fBreset\fR - +.sp (the line-feed character is normally control-J) to get the terminal to work, as carriage-return may no longer work in the abnormal state. Also, the terminal will often not echo the command. @@ -136,7 +137,7 @@ unless \fBsetupterm\fP is not able to detect the window size. .PP The arguments for the \fB-e\fR, \fB-i\fR, and \fB-k\fR options may either be entered as actual characters or by using the `hat' -notation, i.e. control-h may be specified as ``^H'' or ``^h''. +notation, i.e., control-h may be specified as ``^H'' or ``^h''. . .SH SETTING THE ENVIRONMENT It is often desirable to enter the terminal type and information about @@ -150,9 +151,9 @@ are for \fBcsh\fR, otherwise, they are for \fBsh\fR. Note, the \fBcsh\fR commands set and unset the shell variable \fBnoglob\fR, leaving it unset. The following line in the \fB.login\fR or \fB.profile\fR files will initialize the environment correctly: - +.sp eval \`tset -s options ... \` - +. .SH TERMINAL TYPE MAPPING When the terminal is not hardwired into the system (or the current system information is incorrect) the terminal type derived from the @@ -246,8 +247,21 @@ As of 4.4BSD, executing \fBtset\fR as \fBreset\fR no longer implies the \fB-Q\fR option. Also, the interaction between the - option and the \fIterminal\fR argument in some historic implementations of \fBtset\fR has been removed. .SH ENVIRONMENT -The \fBtset\fR command uses the \fBSHELL\fR and \fBTERM\fR -environment variables. +The \fBtset\fR command uses these environment variables: +.TP 5 +SHELL +tells \fBtset\fP whether to initialize \fBTERM\fP using \fBsh\fP or +\fBcsh\fP syntax. +.TP 5 +TERM +Denotes your terminal type. +Each terminal type is distinct, though many are similar. +.TP 5 +TERMCAP +may denote the location of a termcap database. +If it is not an absolute pathname, e.g., begins with a `/', +\fBtset\fP removes the variable from the environment before looking +for the terminal description. .SH FILES .TP 5 /etc/ttys @@ -259,15 +273,17 @@ terminal capability database csh(1), sh(1), stty(1), -setupterm(3), +curs_terminfo(3X), tty(4), -termcap(5), +terminfo(5), ttys(5), environ(7) +.PP +This describes \fBncurses\fR +version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@). .\"# .\"# The following sets edit modes for GNU EMACS .\"# Local Variables: .\"# mode:nroff .\"# fill-column:79 .\"# End: -