gettytab.5
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 301 行
5
301 行
.\" SCCSID: @(#)gettytab.5 3.2 2/8/88.TH gettytab 5.SH Namegettytab \- terminal configuration data base.SH Syntax/etc/gettytab.SH Description.NXB "gettytab file" "format".NXR "terminal" "setting characteristics".NXAM "getty program" "gettytab file".NXA "termcap file" "gettytab file"The.PN gettytabfileis a simplified version of the .MS termcap 5data baseused to describe terminal lines.The initial terminal login process .MS getty 8accesses the.PN gettytabfile each time it starts, allowing simplerreconfiguration of terminal characteristics.Each entry in the data baseis used to describe one class of terminal..PPThere is a default terminal class,.IR default ,that is used to set global defaults for all other classes.That is, the.I default entry is read, and then the entry for the class requiredis used to override particular settings..SH CapabilitiesRefer to .MS termcap 5for a description of the file layout.The.I defaultcolumn below lists defaults obtained if there isno entry in the table obtained, nor one in the special.I defaulttable..NXR "gettytab file" "defaults".PP.TStab(@);lfHB lfHB lfHB lfHBlfR lfR lfR lfR ._.sp 4pName@Type@Default@Description.sp 4p_.sp 6pab@bool@false@Auto-baud speed selection mechanismap@bool@false@Terminal uses any paritybd@num@0@Backspace delaybk@str@0377@T{Alternate end of line character (input break)T}cb@bool@false@Use crt backspace modecd@num@0@Carriage-return delayce@bool@false@Use crt erase algorithmck@bool@false@Use crt kill algorithmcl@str@NULL@Screen clear sequenceco@bool@false@Console \- add \\n after login promptds@str@^Y@Delayed suspend characterec@bool@false@Leave echo 2OFFep@bool@false@Terminal uses even parityer@str@^?@Erase characteret@str@^D@End of text 2EOF characterev@str@NULL@Initial environmentf0@num@unused@Tty mode flags to write messagesf1@num@unused@Tty mode flags to read login namef2@num@unused@Tty mode flags to leave terminal asfd@num@0@Form-feed (vertical motion) delayfl@str@^O@Output flush characterhc@bool@false@Do not hangup line on last closehe@str@NULL@Hostname editing stringhn@str@hostname@Hostnameht@bool@false@Terminal has real tabsig@bool@false@T{Ignore garbage characters in login nameT}im@str@NULL@Initial (banner) messagein@str@^C@Interrupt characteris@num@unused@Input speedkl@str@^U@Kill characterlc@bool@false@Terminal has lower caselm@str@login:@Login promptln@str@^V@``literal next'' characterlo@str@/bin/login@Program to exec when name obtainednd@num@0@Newline (line-feed) delaynl@bool@false@T{Terminal has (or might have) a newline characterT}nx@str@default@Next table (for auto speed selection)op@bool@false@Terminal uses odd parityos@num@unused@Output speedp8@bool@false@Use 8-bit characterspc@str@\\0@Pad characterpd@bool@false@Disable parity on outputpe@bool@false@Use printer (hard copy) erase algorithmpf@num@0@T{Delay between first prompt and following flush (seconds)T}ps@bool@false@Line connected to a MICOM port selectorqu@str@^\\@Quit characterrp@str@^R@Line retype characterrw@bool@false@Do not use raw for input, use cbreaksp@num@unused@Line speed (input and output)su@str@^Z@Suspend charactertc@str@none@Table continuationto@num@0@Timeout (seconds)tt@str@NULL@Terminal type (for environment)ub@bool@false@T{Do unbuffered output (of prompts and so forth)T}uc@bool@false@Terminal is known upper-case onlywe@str@^W@Word erase characterxc@bool@false@Do not echo control chars as ^Xxf@str@^S@XOFF (stop output) characterxn@str@^Q@XON (start output) character.sp 6p_.TE.PPIf no line speed is specified, speed will not be alteredfrom that which prevails when .PN 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.PN f0 ,.PN f1 ,or.PN 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.PN gettyreceive a null character(presumed to indicate a line break), it will restart using the table indicated by the.PN nxentry. If there is none, it will reuse 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.PN 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.PN pc ..PPThe initial message, and login message,.PN imand.PN lmmay include the character sequence.PN %hto obtain the host name, .PN %tto obtain the terminal name, and .PN %dto obtain the date.(\fB%%\fP obtains a single percent (%) character.)The host name is normally obtained from the system,but may be set by the.PN hntable entry.In either case, it can be edited with.PN he .The.PN hestring is a sequence of characters; each character that is neither an at sign (@) nor a number sign (#) is copied into the final host name.An at sign (@) in the.PN hestring causes one character from the real host name tobe copied to the final host name.A number sign (#) in the.PN hestring causes the next character of the real host nameto be skipped.Surplus at signs (@) and number signs (#) are ignored..PPWhen .PN gettyexecutes the login process, given in the.PN lostring (usually .PN /bin/login) , it will have setthe environment to include the terminal type, as indicated by the.PN ttstring, if it exists.The.PN evstring can be used to enter additional data into the environment.It is a list of comma-separated strings, each of whichshould be of the form.IR name=value ..PPIf a nonzero timeout is specified with.PN to ,then .PN gettywill exit within the indicatednumber of seconds, either havingreceived a login name and passed controlto.PN login ,or having received an alarm signal, and exited.This may be useful to hang up dial-in lines..PPThe.PN p8flag allows use of 8-bit characters..PPThe.PN pdflag turns off parity on output. Output from.PN gettyis even parity unless the.PN opflag, the.PN pdflag, or the.PN p8flag is specified. The.PN apflag is used to allow any parity on input.The.PN op(ep)flag may be specified with the.PN apflag to allow any parity on input, but generate odd(even)parity on output.The parity on output is accomplished byusing the eighth bit as the parity bit..PN getty(8)does not check parity of input characters in RAW modeor 8-bit mode..PPTerminals that are set up to operate in 8-bit mode should use.PN gettytab entries which include the .PN p8 flag. If a terminal that is set upin 8-bit mode fails to use an appropriate .PN gettytab entry, the output from.PN gettyand.PN logincan appear as multinational characters. This is due to the fact that.PN gettyuses the eighth bit of characters to provide software generated parity.The software parity generation will transform certain ASCII charactersinto multinational characters. Earlier releases of the ULTRIX operatingsystem did not display these multinational characters, due to the lack offull 8-bit support in the terminal subsystem..SH Restrictions.NXR "gettytab file" "restricted"Because some users insist on changing their default specialcharacters, it is wise to define at least the erase, kill, and interrupt characters in the.B defaulttable.In allcases, # or CTRL/H typed in a login name will be treated asan erase character, and @ will be treated as a kill character..PP.MS login 1destroys the environment, so there is no pointsetting it in.PN gettytab ..SH See Alsotermcap(5), getty(8).NXE "gettytab file" "format"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?