terminfo.5

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 1,365 行 · 第 1/4 页

5
1,365
字号
.TH terminfo 5 .SH Nameterminfo \- terminal capability database.SH Syntax.B /usr/lib/terminfo/*/*.SH Description.NXR "terminfo reference page".NXR "terminals database".NXR "database for terminals"The.PN terminfodatabase describes terminals by giving a set of capabilities which the terminals have, and by describinghow the operations are performed by the terminals.Padding requirements and initialization sequencesare included in.PN terminfo ..PPEntries in.PN terminfoconsist of a number of fields separated by commas (,) .White space after each comma (,) is ignored.The first entry for each terminal provides the known name of theterminal, separated by vertical bars (|).The first name given is the most common abbreviation for the terminal;the last name given should be a long name fully identifying the terminal.All others are understood as synonyms for the terminal name.All names, with the exception of the last, should be in lowercase and cannot contain blanks;the last name can contain uppercase characters and blanks for readability..PPTerminal names, except for the last, shouldbe chosen using the following conventions:.IP \(bu 5The piece of hardware that makes up the terminal shouldhave a root name chosen.  For example, hp2621..IP \(buThe root name cannot contain hyphens, but synonyms canbe used that do not conflict with other names..IP \(buModes that the hardware can be in, or user preferences, shouldbe indicated by appending a hyphen and an indicator of the mode.  Forexample, a VT100 in 132 column mode would be vt100-w..IP \(buThe following suffixes should be used where possible:.PP.TScenter;l c ll l l.\fBSuffix	Meaning	Example\fP-w	Wide mode (more than 80 columns)	vt100-w-am	With auto. margins (usually default)	vt100-am-nam	Without automatic margins	vt100-nam-\fIn\fP	Number of lines on the screen	aaa-60-na	No arrow keys (leave them in local)	c100-na-\fIn\fPp	Number of pages of memory	c100-4p-rv	Reverse video	c100-rv.TE.PPThe following headers are used in the capabilities table:.IP "Variable booleans" 18Variable is the name by which the programmer (at the terminfo level)accesses the capability..IP Capname Short name used in the text of the database,and is used by a person updating the database..IP I.code Two-letter internal code used in the compiled database, which always corresponds to the old.PN termcapcapability name..PPCapability names have no hard length limit, but an informal limit of 5characters has been adopted to keep them short and to allow the tabs inthe source file caps to line up nicely.Whenever possible, names are chosen to be the same as, or similar to,the ANSI X3.64-1979 standard.  Semantics are also intended to matchthose of the specification.  They are as follows:.TP 8(P)Indicates that padding may be specified..TP 8(G)Indicates that the string is passed through tparm withparms as given (#\fIi\fP)..TP 8(*)Indicates that padding may be based on the number oflines affected.TP 8(#\d\fIi\fP\u)Indicates the \fIi\fP\uth\d parameter..sp 2.PP.TScenter;c c c cc c c cl l l lw(2.0i).\fBVariable	Cap-	I.	Description\fR\fBBooleans	name	Code\fR\s-1auto_left_margin,	bw	bw	cub1 wraps from column 0 to last 			column\s+1\s-1auto_right_margin,	am	am	Terminal has automatic margins\s+1\s-1beehive_glitch,	xsb	xb	Beehive (f1=escape, f2=ctrl C)\s+1\s-1ceol_standout_glitch,	xhp	xs	Standout not erased by over-			writing (hp)\s+1\s-1eat_newline_glitch,	xenl	xn	Newline ignored after 80 cols 			(Concept)\s+1\s-1erase_overstrike,	eo	eo	Can erase overstrikes with a 			blank\s+1\s-1generic_type,	gn	gn	Generic line type (for ex., dialup,			switch).\s+1\s-1hard_copy,	hc	hc	Hardcopy terminal\s+1\s-1has_meta_key,	km	km	Has a meta key (shift, sets			parity bit)\s+1\s-1has_status_line,	hs	hs	Has extra status line\s+1\s-1insert_null_glitch,	in	in	Insert mode distinguishes nulls\s+1\s-1memory_above,	da	da	Display may be retained above the 			screen\s+1\s-1memory_below,	db	db	Display may be retained below the 			screen\s+1\s-1move_insert_mode,	mir	mi	Safe to move while in insert mode\s+1\s-1move_standout_mode,	msgr	ms	Safe to move in standout modes\s+1\s-1over_strike,	os	os	Terminal overstrikes\s+1\s-1status_line_esc_ok,	eslok	es	Escape can be used on the status 			line\s+1\s-1teleray_glitch,	xt	xt	Tabs ruin, magic so char (Teleray			1061)\s+1\s-1tilde_glitch,	hz	hz	Hazeltine; can not print tildes (~)s\s+1\s-1transparent_underline,	ul	ul	underline character overstrikes\s+1\s-1xon_xoff,	xon	xo	Terminal uses xon/xoff handshaking\s+1\s-1\s+1\s-1\fBNumbers:\fR\s+1\s-1columns,	cols	co	Number of columns in a line\s+1\s-1init_tabs,	it	it	Tabs initially every # spaces\s+1\s-1lines,	lines	li	Number of lines on screen or page\s+1\s-1lines_of_memory,	lm	lm	Lines of memory if > lines.  0 			means varies\s+1\s-1magic_cookie_glitch,	xmc	sg	Number of blank chars left by			smso or rmso\s+1\s-1padding_baud_rate,	pb	pb	Lowest baud where cr/nl padding			is needed\s+1\s-1virtual_terminal,	vt	vt	Virtual terminal number (\s-1UNIX\s+1 			system)\s+1\s-1width_status_line,	wsl	ws	Number of columns in status line\s+1\s-1\s+1\s-1\fBStrings:\fR\s+1\s-1back_tab,	cbt	bt	Back tab (P)\s+1\s-1bell,	bel	bl	Audible signal (bell) (P)\s+1\s-1carriage_return,	cr	cr	Carriage return (P*)\s+1\s-1change_scroll_region,	csr	cs	Change to lines #1 through #2 			(vt100) (PG)\s+1\s-1clear_all_tabs,	tbc	ct	Clear all tab stops (P)\s+1\s-1clear_screen,	clear	cl	Clear screen and home cursor (P*)\s+1\s-1clr_eol,	el	ce	Clear to end of line (P)\s+1\s-1clr_eos,	ed	cd	Clear to end of display (P*)\s+1\s-1column_address,	hpa	ch	Set cursor column (PG)\s+1\s-1command_character,	cmdch	CC	Term. settable cmd char in 			prototype\s+1\s-1cursor_address,	cup	cm	Screen rel. cursor motion row #1			col #2 (PG)\s+1\s-1cursor_down,	cud1	do	Down one line\s+1\s-1cursor_home,	home	ho	Home cursor (if no cup)\s+1\s-1cursor_invisible,	civis	vi	Make cursor invisible\s+1\s-1cursor_left,	cub1	le	Move cursor left one space\s+1\s-1cursor_mem_address,	mrcup	CM	Memory relative cursor addressing\s+1\s-1cursor_normal,	cnorm	ve	Make cursor appear normal 			(undo vs/vi)\s+1\s-1cursor_right,	cuf1	nd	Nondestructive space (cursor 			right)\s+1\s-1cursor_to_ll,	ll	ll	Last line, first column (if no cup)\s+1\s-1cursor_up,	cuu1	up	Upline (cursor up)\s+1\s-1cursor_visible,	cvvis	vs	Make cursor very visible\s+1\s-1delete_character,	dch1	dc	Delete character (P*)\s+1\s-1delete_line,	dl1	dl	Delete line (P*)\s+1\s-1dis_status_line,	dsl	ds	Disable status line\s+1\s-1down_half_line,	hd	hd	Half-line down (forward 1/2 			linefeed)\s+1\s-1enter_alt_charset_mode,	smacs	as	Start alternate character set (P)\s+1\s-1enter_blink_mode,	blink	mb	Turn on blinking\s+1\s-1enter_bold_mode,	bold	md	Turn on bold (extra bright) mode\s+1\s-1enter_ca_mode,	smcup	ti	String to begin programs that use 			cup\s+1\s-1enter_delete_mode,	smdc	dm	Delete mode (enter)\s+1\s-1enter_dim_mode,	dim	mh	Turn on half-bright mode\s+1\s-1enter_insert_mode,	smir	im	Insert mode (enter);\s+1\s-1enter_protected_mode,	prot	mp	Turn on protected mode\s+1\s-1enter_reverse_mode,	rev	mr	Turn on reverse video mode\s+1\s-1enter_secure_mode,	invis	mk	Turn on blank mode (chars 			invisible)\s+1\s-1enter_standout_mode,	smso	so	Begin stand out mode\s+1\s-1enter_underline_mode,	smul	us	Start underscore mode\s+1\s-1erase_chars	ech	ec	Erase #1 characters (PG)\s+1\s-1exit_alt_charset_mode,	rmacs	ae	End alternate character set (P)\s+1\s-1exit_attribute_mode,	sgr0	me	Turn off all attributes\s+1\s-1exit_ca_mode,	rmcup	te	String to end programs that use cup\s+1\s-1exit_delete_mode,	rmdc	ed	End delete mode\s+1\s-1exit_insert_mode,	rmir	ei	End insert mode\s+1\s-1exit_standout_mode,	rmso	se	End stand out mode\s+1\s-1exit_underline_mode,	rmul	ue	End underscore mode\s+1\s-1flash_screen,	flash	vb	Visible bell (may not move			cursor)\s+1\s-1form_feed,	ff	ff	Hardcopy terminal page eject (P*)\s+1\s-1from_status_line,	fsl	fs	Return from status line\s+1\s-1init_1string,	is1	i1	Terminal initialization string\s+1\s-1init_2string,	is2	i2	Terminal initialization string\s+1\s-1init_3string,	is3	i3	Terminal initialization string\s+1\s-1init_file,	if	if	Name of file containing is\s+1\s-1insert_character,	ich1	ic	Insert character (P)\s+1\s-1insert_line,	il1	al	Add new blank line (P*)\s+1\s-1insert_padding,	ip	ip	Insert pad after character 			inserted (p*)\s+1\s-1key_backspace,	kbs	kb	Sent by backspace key\s+1\s-1key_catab,	ktbc	ka	Sent by clear-all-tabs key\s+1\s-1key_clear,	kclr	kC	Sent by clear screen or erase key\s+1\s-1key_ctab,	kctab	kt	Sent by clear-tab key\s+1\s-1key_dc,	kdch1	kD	Sent by delete character key\s+1\s-1key_dl,	kdl1	kL	Sent by delete line key\s+1\s-1key_down,	kcud1	kd	Sent by terminal down arrow key\s+1\s-1key_eic,	krmir	kM	Sent by rmir or smir in insert mode\s+1\s-1key_eol,	kel	kE	Sent by clear-to-end-of-line key\s+1\s-1key_eos,	ked	kS	Sent by clear-to-end-of-screen			key\s+1\s-1key_f0,	kf0	k0	Sent by function key f0\s+1\s-1key_f1,	kf1	k1	Sent by function key f1\s+1\s-1key_f10,	kf10	ka	Sent by function key f10\s+1\s-1key_f2,	kf2	k2	Sent by function key f2\s+1\s-1key_f3,	kf3	k3	Sent by function key f3\s+1\s-1key_f4,	kf4	k4	Sent by function key f4\s+1\s-1key_f5,	kf5	k5	Sent by function key f5\s+1\s-1key_f6,	kf6	k6	Sent by function key f6\s+1\s-1key_f7,	kf7	k7	Sent by function key f7\s+1\s-1key_f8,	kf8	k8	Sent by function key f8\s+1\s-1key_f9,	kf9	k9	Sent by function key f9\s+1\s-1key_home,	khome	kh	Sent by home key\s+1\s-1key_ic,	kich1	kI	Sent by ins char/enter ins mode key\s+1\s-1key_il,	kil1	kA	Sent by insert line\s+1\s-1key_left,	kcub1	kl	Sent by terminal left arrow key\s+1\s-1key_ll,	kll	kH	Sent by home-down key\s+1\s-1key_npage,	knp	kN	Sent by next-page key\s+1\s-1key_ppage,	kpp	kP	Sent by previous-page key\s+1\s-1key_right,	kcuf1	kr	Sent by terminal right arrow key\s+1\s-1key_sf,	kind	kF	Sent by scroll-forward/down key\s+1\s-1key_sr,	kri	kR	Sent by scroll-backward/up key\s+1\s-1key_stab,	khts	kT	Sent by set-tab key\s+1\s-1key_up,	kcuu1	ku	Sent by terminal up arrow key\s+1\s-1keypad_local,	rmkx	ke	Out of "keypad transmit" mode\s+1\s-1keypad_xmit,	smkx	ks	Put terminal in "keypad transmit" 			mode\s+1\s-1lab_f0,	lf0	l0	Labels on function key f0 if not f0\s+1\s-1lab_f1,	lf1	l1	Labels on function key f1 if not f1\s+1\s-1lab_f10,	lf10	la	Labels on function key f10 if not 			f10\s+1\s-1lab_f2,	lf2	l2	Labels on function key f2 if not f2\s+1\s-1lab_f3,	lf3	l3	Labels on function key f3 if not f3\s+1\s-1lab_f4,	lf4	l4	Labels on function key f4 if not f4\s+1\s-1lab_f5,	lf5	l5	Labels on function key f5 if not f5\s+1\s-1lab_f6,	lf6	l6	Labels on function key f6 if not f6\s+1\s-1lab_f7,	lf7	l7	Labels on function key f7 if not f7\s+1\s-1lab_f8,	lf8	l8	Labels on function key f8 if not f8\s+1\s-1lab_f9,	lf9	l9	Labels on function key f9 if not f9\s+1\s-1meta_on,	smm	mm	Turn on "meta mode" (8th bit)\s+1\s-1meta_off,	rmm	mo	Turn off "meta mode"\s+1\s-1newline,	nel	nw	Newline (behaves like cr followed			by lf)\s+1\s-1pad_char,	pad	pc	Pad character (rather than null)\s+1\s-1parm_dch,	dch	DC	Delete #1 chars (PG*)\s+1\s-1parm_delete_line,	dl	DL	Delete #1 lines (PG*)\s+1\s-1parm_down_cursor,	cud	DO	Move cursor down #1 lines (PG*)\s+1\s-1parm_ich,	ich	IC	Insert #1 blank chars (PG*)\s+1\s-1parm_index,	indn	SF	Scroll forward #1 lines (PG)\s+1\s-1parm_insert_line,	il	AL	Add #1 new blank lines (PG*)\s+1\s-1parm_left_cursor,	cub	LE	Move cursor left #1 spaces (PG)\s+1\s-1parm_right_cursor,	cuf	RI	Move cursor right #1 spaces (PG*)\s+1\s-1parm_rindex,	rin	SR	Scroll backward #1 lines (PG)\s+1\s-1parm_up_cursor,	cuu	UP	Move cursor up #1 lines (PG*)\s+1\s-1pkey_key,	pfkey	pk	Prog funct key #1 to type string #2\s+1\s-1pkey_local,	pfloc	pl	Prog funct key #1 to execute string 			#2\s+1\s-1pkey_xmit,	pfx	px	Prog funct key #1 to xmit string #2\s+1\s-1print_screen,	mc0	ps	Print contents of the screen\s+1\s-1prtr_off,	mc4	pf	Turn off the printer\s+1\s-1prtr_on,	mc5	po	Turn on the printer\s+1\s-1repeat_char,	rep	rp	Repeat char #1 #2 times.  (PG*)\s+1\s-1reset_1string,	rs1	r1	Reset terminal completely to sane 			modes.\s+1\s-1reset_2string,	rs2	r2	Reset terminal completely to sane 			modes.\s+1\s-1reset_3string,	rs3	r3	Reset terminal completely to sane 			modes.\s+1\s-1reset_file,	rf	rf	Name of file containing reset 			string\s+1\s-1restore_cursor,	rc	rc	Restore cursor to position of 			last sc\s+1\s-1row_address,	vpa	cv	Vertical position absolute 			(set row) (PG)\s+1\s-1save_cursor,	sc	sc	Save cursor position (P)\s+1\s-1scroll_forward,	ind	sf	Scroll text up (P)\s+1\s-1scroll_reverse,	ri	sr	Scroll text down (P)\s+1\s-1set_attributes,	sgr	sa	Define the video attributes (PG9)\s+1\s-1set_tab,	hts	st	Set a tab in all rows, current 			column\s+1\s-1set_window,	wind	wi	Current window is lines #1-#2			cols #3-#4\s+1\s-1tab,	ht	ta	Tab to next 8 space hardware tab 			stop\s+1\s-1to_status_line,	tsl	ts	Go to status line, column #1\s+1\s-1underline_char,	uc	uc	Underscore one char and move past 			it\s+1\s-1up_half_line,	hu	hu	Half-line up (reverse 1/2 linefeed)\s+1\s-1init_prog,	iprog	iP	Path name of program for init\s+1\s-1key_a1,	ka1	K1	Upper left of keypad\s+1\s-1key_a3,	ka3	K3	Upper right of keypad\s+1\s-1key_b2,	kb2	K2	Center of keypad\s+1\s-1key_c1,	kc1	K4	Lower left of keypad\s+1\s-1key_c3,	kc3	K5	Lower right of keypad\s+1\s-1prtr_non,	mc5p	pO	Turn on the printer for #1 bytes\s+1.TE.PP.B Sample Entry.PPThe following entry, which describes the Concept\-100, is one of themore complex entries in the.PN terminfo :.EX 0\s-2concept100\||\|c100|\|\|concept\||\|c104\||\|c100-4p\||\|concept 100,   am, bel=^G, blank=\eEH, blink=\eEC, clear=^L$<2*>, cnorm=\eEw,   cols#80, cr=^M$<9>, cub1=^H, cud1=^J, cuf1=\eE=,   cup=\eEa%p1%' '%+%c%p2%' '%+%c,   cuu1=\eE;, cvvis=\eEW, db, dch1=\eE^A$<16*>, dim=\eEE, dl1=\eE^B$<3*>,   ed=\eE^C$<16*>, el=\eE^U$<16>, eo, flash=\eEk$<20>\eEK, ht=\et$<8>,   il1=\eE^R$<3*>, in, ind=^J, .ind=^J$<9>, ip=$<16*>,   is2=\eEU\eEf\eE7\eE5\eE8\eEl\eENH\eEK\eE\e200\eEo&\e200\eEo\e47\eE,   kbs=^h, kcub1=\eE>, kcud1=\eE<, kcuf1=\eE=, kcuu1=\eE;,   kf1=\eE5, kf2=\eE6, kf3=\eE7, khome=\eE?,   lines#24, mir, pb#9600, prot=\eEI, rep=\eEr%p1%c%p2%' '%+%c$<.2*>,   rev=\eED, rmcup=\eEv    $<6>\eEp\er\en, rmir=\eE\e200, rmkx=\eEx,   rmso=\eEd\eEe, rmul=\eEg, rmul=\eEg, sgr0=\eEN\e200,

⌨️ 快捷键说明

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