usr/src/cmd/terminfo/ansi.ti
changeset 13444 c1ed50709bff
parent 13443 76ab5b799560
child 13445 4dad26dd1fb9
equal deleted inserted replaced
13443:76ab5b799560 13444:c1ed50709bff
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License, Version 1.0 only
       
     6 # (the "License").  You may not use this file except in compliance
       
     7 # with the License.
       
     8 #
       
     9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    10 # or http://www.opensolaris.org/os/licensing.
       
    11 # See the License for the specific language governing permissions
       
    12 # and limitations under the License.
       
    13 #
       
    14 # When distributing Covered Code, include this CDDL HEADER in each
       
    15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    16 # If applicable, add the following below this CDDL HEADER, with the
       
    17 # fields enclosed by brackets "[]" replaced with your own identifying
       
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    19 #
       
    20 # CDDL HEADER END
       
    21 #
       
    22 #
       
    23 # Copyright 1995 Sun Microsystems, Inc.  All rights reserved.
       
    24 # Use is subject to license terms.
       
    25 #
       
    26 
       
    27 #	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
       
    28 #	  All Rights Reserved
       
    29 
       
    30 #ident	"%Z%%M%	%I%	%E% SMI"
       
    31 # # ANSI - standards and other nonexistent terminals emulated in software.
       
    32 #
       
    33 # Manufacturer:	ANSI - Generic
       
    34 # Class:	III
       
    35 # 
       
    36 # Info:
       
    37 #	This category is used for terminals people "make up" in software
       
    38 #	that do not represent a particular piece of hardware. This 
       
    39 #	includes standards, such as the ANSI standard, as well as 
       
    40 #	emulator programs that accept a particular set of escape 
       
    41 #	sequences.
       
    42 #	
       
    43 #	ANSI capabilities are broken up into pieces, so that a terminal
       
    44 #	implementing some ANSI subset can use many of them.
       
    45 #
       
    46 ansi+local,
       
    47 	cud=\E[%p1%dB, cub=\E[%p1%dD, cuf=\E[%p1%dC, cuu=\E[%p1%dA,
       
    48 ansi+local1,
       
    49 	cud1=^J, cub1=^H, cuf1=\E[C, cuu1=\E[A,
       
    50 ansi+tabs,
       
    51 	ht=^I, cbt=\E[Z, hts=\EH, tbc=\E[3g,
       
    52 ansi+inittabs,
       
    53 	it#8, use=ansi+tabs,
       
    54 ansi+erase,
       
    55 	ed=\E[J, el=\E[K, clear=\E[H\E[J,
       
    56 ansi+rca,
       
    57 	hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
       
    58 ansi+cup,
       
    59 	cup=\E[%i%p1%d;%p2%dH, home=\E[H,
       
    60 ansi+rep,
       
    61 	rep=%p1%c\E[%p2%{1}%-%db,
       
    62 ansi+idl,
       
    63 	dl=\E[%p1%dM, il=\E[%p1%dL,
       
    64 ansi+idl1,
       
    65 	dl1=\E[M, il1=\E[L,
       
    66 ansi+idc,
       
    67 	dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@, 
       
    68 #	smir=\E6, rmir=\E6,	commented out by ehr3
       
    69 ansi+arrows,
       
    70 	kcuu1=\E[A, kcud1=\E[B, kcub1=\E[D, kcuf1=\E[C, khome=\E[H, kbs=^H,
       
    71 ansi+sgr|ansi graphic renditions,
       
    72 	rev=\E[7m, blink=\E[5m, invis=\E[8m, sgr0=\E[0m,
       
    73 ansi+sgrso|ansi standout only,
       
    74 	rmso=\E[m, smso=\E[7m,
       
    75 ansi+sgrul|ansi underline only,
       
    76 	rmul=\E[m, smul=\E[4m,
       
    77 ansi+sgrbold|ansi graphic renditions; assuming terminal has bold; not dim,
       
    78 	bold=\E[1m,
       
    79 	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
       
    80 	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
       
    81 ansi+sgrdim|ansi graphic renditions; assuming terminal has dim; not bold,
       
    82 	dim=\E[2m,
       
    83 	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;%;m,
       
    84 	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
       
    85 ansi+pp|ansi printer port,
       
    86 	mc4=\E[4i, mc5=\E[5i, mc0=\E[0i,
       
    87 # Info:
       
    88 #	ANSI is a vanilla ANSI terminal. This is assumed to implement 
       
    89 #	all the normal ANSI stuff with no extensions. It assumes 
       
    90 #	insert/delete line/char is there, so it won't work with 
       
    91 #	vt100 clones. It assumes video attributes for bold, blink, 
       
    92 #	underline, and reverse, which won't matter much if the terminal 
       
    93 #	can't do some of those. Padding is assumed to be zero, which 
       
    94 #	shouldn't hurt since xon/xoff is assumed.
       
    95 #	
       
    96 #	We assume a 24x80 screen. This entry was derived from the 
       
    97 #	Ann Arbor Ambassador, and is untested.
       
    98 #
       
    99 ansi|generic ansi standard terminal,
       
   100 	use=vanilla, am, cols#80, lines#24, xon,
       
   101 	use=ansi+cup, use=ansi+rca,
       
   102 	use=ansi+erase,
       
   103 	use=ansi+tabs,
       
   104 	use=ansi+local1, use=ansi+local,
       
   105 	use=ansi+idc, use=ansi+idl1, use=ansi+idl,
       
   106 	use=ansi+rep,
       
   107 	use=ansi+sgrbold, use=ansi+arrows,
       
   108 # Info:
       
   109 #	Bare minimum ANSI terminal. This should work on anything, but 
       
   110 #	beware of screen size problems and memory relative cursor 
       
   111 #	addressing.
       
   112 #
       
   113 minansi|minimum ansi standard terminal,
       
   114 	am, xon, use=vanilla, cols#80, lines#24,
       
   115 	use=ansi+cup, use=ansi+erase,
       
   116 # Info:
       
   117 #	This terminal type is for ANSI terminals with ONLY memory 
       
   118 #	relative cursor addressing and more than one page of memory.
       
   119 #	It uses local motions instead of direct cursor addressing, 
       
   120 #	and makes almost no assumptions. It does assume auto margins, 
       
   121 #	no padding and/or xon/xoff, and a 24x80 screen.
       
   122 #
       
   123 mransi|mem rel cup ansi,
       
   124 	am, use=vanilla, cols#80, lines#24, xon,
       
   125 	use=ansi+erase, use=ansi+local1,
       
   126 # Info:
       
   127 #	Columbus UNIX virtual terminal. This terminal also appears in 
       
   128 #	UNIX 4.0 and successors as line discipline 1 (?), but is 
       
   129 #	undocumented and does not really work quite right.
       
   130 #
       
   131 virtual|cbunix|cb-unix|cb-unix virtual terminal,
       
   132 	cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24, am, clear=\EJ,
       
   133 	cub1=^H, cup=\EG%p2%c%p1%c, cuf1=\EC, cuu1=\EA, el=\EK,
       
   134 	ed=\EL, il1=\EP, dl1=\EN, ich1=\EO, dch1=\EM, lm#0, da, db,
       
   135 	kcub1=\ED, kcuf1=\EC, kcuu1=\EA, kcud1=\EB, khome=\EE,
       
   136 	smso=\Ea\004, rmso=\Eb\004, smul=\Ea\001, rmul=\Eb\001,
       
   137 # Info:
       
   138 #	This terminal is based on virtual but cleans up a few problems 
       
   139 #	with control characters in parameter strings. It is implemented 
       
   140 #	in mrh's window manager.
       
   141 #
       
   142 pty|4bsd pty terminal,
       
   143 	smso=\Ea$, rmso=\Eb$, smul=\Ea!, rmul=\Eb!,
       
   144 	cup=\EG%p1%' '%+%c%p2%' '%+%c, use=virtual,
       
   145 # Info:
       
   146 #	A dumb terminal with 1 line which is a fake status line.
       
   147 #	This is useful to run sysline in in a multi-window environment.
       
   148 #
       
   149 1line|one_line|one line window,
       
   150 	cr=^M, ind=^J, cols#80, lines#1, am, ht=^I, cub1=^H,
       
   151 	hs, tsl=\n,
       
   152 # Info:
       
   153 #	1linepty is like 1line but the 1 line window is smarter,
       
   154 #	with standout, cursor addressing, and clear to eol.
       
   155 #
       
   156 1linepty|one_linepty|1 line window in a pty,
       
   157 	smso=\Ea$, rmso=\Eb$, smul=\Ea!, rmul=\Eb!,
       
   158 	cup=\EG%p1%' '%+%c%p2%' '%+%c, tsl=\r\EK\EG %p2%' '%+%c,
       
   159 	eslok, use=1line,
       
   160 vanilla,
       
   161 	bel=^G, cr=^M, cud1=^J, ind=^J,
       
   162 datakit,
       
   163 	am, gn,
       
   164 	cols#80,
       
   165 	bel=^G, cr=\r, cud1=\n, ind=\n,