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