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# Copyright (c) 1996 by Sun Microsystems, Inc. 23*0Sstevel@tonic-gate# All rights reserved. 24*0Sstevel@tonic-gate# 25*0Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 26*0Sstevel@tonic-gate# 27*0Sstevel@tonic-gate 28*0Sstevel@tonic-gate# 29*0Sstevel@tonic-gate# Kimtron KT-7 with VT-100 emulation ROMs. 30*0Sstevel@tonic-gate# This is a hack of the VC2100 VT-100 emulation. 31*0Sstevel@tonic-gate# 32*0Sstevel@tonic-gatekt7|kt7io|Kimtron KT-7, 33*0Sstevel@tonic-gate cols#80, lines#24, am, bw, xon, 34*0Sstevel@tonic-gate cr=^M, bel=^G, 35*0Sstevel@tonic-gate# Status line 36*0Sstevel@tonic-gate hs, dsl=\E[0;0z 37*0Sstevel@tonic-gate# Cursor one position 38*0Sstevel@tonic-gate cuu1=\E[A, cud1=^J, cuf1=\E[C, cub1=^H, 39*0Sstevel@tonic-gate# Cursor multiple positions 40*0Sstevel@tonic-gate cuu=\E[%p1%dA, cud=\E[%p1%dB, cuf=\E[%p1%dC, cub=\E[%p1%dD, 41*0Sstevel@tonic-gate# Cursor position 42*0Sstevel@tonic-gate cup=\E[%i%p1%d;%p2%dH, home=\E[H, 43*0Sstevel@tonic-gate# Scrolling Region 44*0Sstevel@tonic-gate csr=\E[%p1%d;%p2%dr, sc=\E7, rc=\E8, 45*0Sstevel@tonic-gate# Scroll down and up 46*0Sstevel@tonic-gate ind=^J, ri=\EM, 47*0Sstevel@tonic-gate# Area Clears - contrary to documentation, \E2J doesn't home the cursor! 48*0Sstevel@tonic-gate el=\E[K, ed=\E[J, clear=\E[H\E[2J, 49*0Sstevel@tonic-gate# Attributes 50*0Sstevel@tonic-gate bold=\E[1m, rev=\E[7m, blink=\E[5m, invis=\E[3m, sgr0=\E[m, 51*0Sstevel@tonic-gate smul=\E[4m, rmul=\E[m, smso=\E[4;7m, rmso=\E[m, msgr, 52*0Sstevel@tonic-gate sgr=\E[0;%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;2m, 53*0Sstevel@tonic-gate# flash=\E[?5h\E[?5l, needs some kind of delay in the middle 54*0Sstevel@tonic-gate# Tabs 55*0Sstevel@tonic-gate ht=^I, tbc=\E[3g, hts=\EH, it#8, 56*0Sstevel@tonic-gate# Screen editing 57*0Sstevel@tonic-gate il1=\E[L, dl1=\E[M, ich1=\E[@, dch1=\E[P, smir=\E[4h, rmir=\E[4l, 58*0Sstevel@tonic-gate il=\E[%p1%dL, dl=\E[%p1%dM, ich=\E[%p1%d@, dch=\E[%p1%dP, 59*0Sstevel@tonic-gate# Keypad 60*0Sstevel@tonic-gate kcuu1=\E[A, kcud1=\E[B, kcub1=\E[D, kcuf1=\E[C, khome=\E[H, kbs=^H, 61*0Sstevel@tonic-gate kf1=\Ef1, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5, 62*0Sstevel@tonic-gate kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kf10=\Ef0, 63*0Sstevel@tonic-gate kf11=\EF1, kf12=\EF2, kf13=\EF3, kf14=\EF4, kf15=\EF5, 64*0Sstevel@tonic-gate kf16=\EF6, kf17=\EF7, kf18=\EF8, kf19=\EF9, kf20=\EF0, 65*0Sstevel@tonic-gate kdl1=\E[M, kil1=\EOQ, kich1=\EOP, kdch1=\E[P, 66*0Sstevel@tonic-gate kclr=^L, 67*0Sstevel@tonic-gate pfkey=\E[?%p1%dh/%p2%s/, 68*0Sstevel@tonic-gate# Initialization 69*0Sstevel@tonic-gate is1=\E<\017\E[0m\E[?7h\E[?1l\E[?11k\E[?10k\E>, 70*0Sstevel@tonic-gate rs1=\E[0m\Ec, 71*0Sstevel@tonic-gate# Applications dependent for 10 - initialize US keys as function keys 72*0Sstevel@tonic-gate is2=\E|11\Ef1^Y\E|21\Ef2^Y\E|31\Ef3^Y\E|41\Ef4^Y\E|51\Ef5^Y\E|61\Ef6^Y\E|71\Ef7^Y\E|81\Ef8^Y\E|91\Ef9^Y\E|01\Ef0^Y, 73*0Sstevel@tonic-gate 74*0Sstevel@tonic-gatekt7new|Kimtron KT-7 with stupid eat newline, 75*0Sstevel@tonic-gate am@, 76*0Sstevel@tonic-gate xenl, 77*0Sstevel@tonic-gate use=kt7, 78