⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gettytab.5

📁 早期freebsd实现
💻 5
字号:
.\" Copyright (c) 1983, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)gettytab.5	8.4 (Berkeley) 4/19/94.\".Dd April 19, 1994.Dt GETTYTAB 5.Os BSD 4.2.Sh NAME.Nm gettytab.Nd terminal configuration data base.Sh SYNOPSIS.Nm gettytab.Sh DESCRIPTIONThe.Nm gettytabfileis a simplified version of the.Xr termcap 5data baseused to describe terminal lines.The initial terminal login process.Xr getty 8accesses the.Nm gettytabfile each time it starts, allowing simplerreconfiguration of terminal characteristics.Each entry in the data baseis used to describe one class of terminals..PpThere is a default terminal class,.Em default ,that is used to set global defaults for all other classes.(That is, the.Em defaultentry is read, then the entry for the class requiredis used to override particular settings.).Sh CAPABILITIESRefer to.Xr termcap 5for a description of the file layout.The.Em defaultcolumn below lists defaults obtained if there isno entry in the table obtained, nor one in the special.Em defaulttable..Bl -column Namexx /usr/bin/login Default.It Sy Name	Type	Default	Description.It "ap	bool	false	terminal uses any parity".It "bd	num	0	backspace delay".It "bk	str	0377	alternate end of line character (input break)".It "cb	bool	false	use crt backspace mode".It "cd	num	0	carriage-return delay".It "ce	bool	false	use crt erase algorithm".It "ck	bool	false	use crt kill algorithm".It "cl	str" Ta Dv NULL	Ta.No "screen clear sequence".It "co	bool	false	console - add".Ql \enafter login prompt.It "ds	str" Ta So Li ^Y Sc Ta.No "delayed suspend character".It "dx	bool	false	set".Dv DECCTLQ.It "ec	bool	false	leave echo".Tn OFF.It "ep	bool	false	terminal uses even parity".It "er	str" Ta So Li ^? Sc Ta.No "erase character".It "et	str" Ta So Li ^D Sc Ta.No "end of text".Pq Dv EOFcharacter.It "ev	str" Ta Dv NULL	Ta.No "initial environment".It "f0	num	unused	tty mode flags to write messages".It "f1	num	unused	tty mode flags to read login name".It "f2	num	unused	tty mode flags to leave terminal as".It "fd	num	0	form-feed (vertical motion) delay".It "fl	str" Ta So Li ^O Sc Ta.No "output flush character".It "hc	bool	false	do".Tn NOThangup line on last close.It "he	str" Ta Dv NULL	Ta.No "hostname editing string".It "hn	str	hostname	hostname".It "ht	bool	false	terminal has real tabs".It "ig	bool	false	ignore garbage characters in login name".It "im	str" Ta Dv NULL Ta.No "initial (banner) message".It "in	str" Ta So Li ^C Sc Ta.No "interrupt character".It "is	num	unused	input speed".It "kl	str" Ta So Li ^U Sc Ta.No "kill character".It "lc	bool	false	terminal has lower case".It "lm	str	login:	login prompt".It "ln	str" Ta So Li ^V Sc Ta.No "``literal next'' character".It "lo	str" Ta Pa /usr/bin/login Ta.No "program to exec when name obtained".It "nd	num	0	newline (line-feed) delay".It "nl	bool	false	terminal has (or might have) a newline character".It "np	bool	false	terminal uses no parity (i.e. 8-bit characters)".It "nx	str	default	next table (for auto speed selection)".It "op	bool	false	terminal uses odd parity".It "os	num	unused	output speed".It "pc	str" Ta So Li \e0 Sc Ta.No "pad character".It "pe	bool	false	use printer (hard copy) erase algorithm".It "pf	num	0	delay"between first prompt and following flush (seconds).It "ps	bool	false	line connected to a".Tn MICOMport selector.It "qu	str" Ta So Li \&^\e Sc Ta.No "quit character".It "rp	str" Ta So Li ^R Sc Ta.No "line retype character".It "rw	bool	false	do".Tn NOTuse raw for input, use cbreak.It "sp	num	unused	line speed (input and output)".It "su	str" Ta So Li ^Z Sc Ta.No "suspend character".It "tc	str	none	table continuation".It "to	num	0	timeout (seconds)".It "tt	str" Ta Dv NULL Ta.No "terminal type (for environment)".It "ub	bool	false	do unbuffered output (of prompts etc)".It "uc	bool	false	terminal is known upper case only".It "we	str" Ta So Li ^W Sc Ta.No "word erase character".It "xc	bool	false	do.Tn NOTecho control chars as.Ql ^X.It "xf	str" Ta So Li ^S Sc Ta Dv XOFF(stop output) character.It "xn	str" Ta So Li ^Q Sc Ta Dv XON(start output) character.El.PpIf no line speed is specified, speed will not be alteredfrom that which prevails when getty is entered.Specifying an input or output speed will overrideline speed for stated direction only..PpTerminal modes to be used for the output of the message,for input of the login name,and to leave the terminal set as upon completion,are derived from the boolean flags specified.If the derivation should prove inadequate,any (or all) of these three may be overriddenwith one of the.Em \&f0 ,.Em \&f1 ,or.Em \&f2numeric specifications, which can be used to specify(usually in octal, with a leading '0')the exact values of the flags.Local (new tty) flags are set in the top 16 bitsof this (32 bit) value..PpShould.Xr gettyreceive a null character(presumed to indicate a line break)it will restart using the table indicated by the.Em nxentry. If there is none, it will re-use its original table..PpDelays are specified in milliseconds, the nearest possibledelay available in the tty driver will be used.Should greater certainty be desired, delayswith values 0, 1, 2, and 3 are interpreted aschoosing that particular delay algorithm from the driver..PpThe.Em \&clscreen clear string may be preceded by a (decimal) numberof milliseconds of delay required (a la termcap).This delay is simulated by repeated use of the pad character.Em \&pc ..PpThe initial message, and login message,.Em \&imand.Em \&lmmay include the character sequence.Em \&%hor.Em \&%tto obtainthe hostname or tty name respectively..Pf ( Em %%obtains a single '%' character.)The hostname is normally obtained from the system,but may be set by the.Em \&hntable entry.In either case it may be edited with.Em \&he .The.Em \&hestring is a sequence of characters, each character thatis neither '@' nor '#' is copied into the final hostname.A '@' in the.Em \&hestring, causes one character from the real hostname tobe copied to the final hostname.A '#' in the.Em \&hestring, causes the next character of the real hostnameto be skipped.Surplus '@' and '#' characters are ignored..PpWhen getty execs the login process, givenin the.Em \&lostring (usually.Dq Pa /usr/bin/login ) ,it will have setthe environment to include the terminal type, as indicatedby the.Em \&ttstring (if it exists).The.Em \&evstring, can be used to enter additional data intothe environment.It is a list of comma separated strings, each of whichwill presumably be of the form.Em name=value ..PpIf a non-zero timeout is specified, with.Em \&to ,then getty will exit within the indicatednumber of seconds, either havingreceived a login name and passed controlto.Xr login ,or having received an alarm signal, and exited.This may be useful to hangup dial in lines..PpOutput from.Xr gettyis even parity unless.Em \&opis specified.The.Em \&opstringmay be specified with.Em \&apto allow any parity on input, but generate odd parity output.Note: this only applies while getty is being run,terminal driver limitations prevent a more completeimplementation..Xr Gettydoes not check parity of input characters in.Dv RAWmode..Sh SEE ALSO.Xr login 1 ,.Xr termcap 5 ,.Xr getty 8 ..Sh BUGSThe special characters (erase, kill, etc.) are reset to system defaultsby.Xr login 1 .In.Em allcases, '#' or '^H' typed in a login name will be treated asan erase character, and '@' will be treated as a kill character..PpThe delay stuff is a real crock.Apart form its general lack of flexibility, someof the delay algorithms are not implemented.The terminal driver should support sane delay settings..PpThe.Em \&hecapability is stupid..PpThe.Xr termcapformat is horrid, something more rational shouldhave been chosen..Sh HISTORYThe.Nm gettytabfile format appeared in 4.2BSD.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -