1*7c478bd9Sstevel@tonic-gate/* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */ 23*7c478bd9Sstevel@tonic-gate/* 24*7c478bd9Sstevel@tonic-gate** SYSTEM DEPENDENT TERMINAL DELAY TABLES 25*7c478bd9Sstevel@tonic-gate** 26*7c478bd9Sstevel@tonic-gate** CB/Unix 2.3 27*7c478bd9Sstevel@tonic-gate** 28*7c478bd9Sstevel@tonic-gate** This looks like V7, and it even works, but the kernel really 29*7c478bd9Sstevel@tonic-gate** only has one bit for each kind of delay so it's somewhat 30*7c478bd9Sstevel@tonic-gate** inaccurate. But it tries to simulate v7. 31*7c478bd9Sstevel@tonic-gate** 32*7c478bd9Sstevel@tonic-gate** This file maintains the correspondence between the delays 33*7c478bd9Sstevel@tonic-gate** defined in /etc/termcap and the delay algorithms on a 34*7c478bd9Sstevel@tonic-gate** particular system. For each type of delay, the bits used 35*7c478bd9Sstevel@tonic-gate** for that delay must be specified (in XXbits) and a table 36*7c478bd9Sstevel@tonic-gate** must be defined giving correspondences between delays and 37*7c478bd9Sstevel@tonic-gate** algorithms. Algorithms which are not fixed delays (such 38*7c478bd9Sstevel@tonic-gate** as dependent on current column or line number) must be 39*7c478bd9Sstevel@tonic-gate** kludged in some way at this time. 40*7c478bd9Sstevel@tonic-gate*/ 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate/* 45*7c478bd9Sstevel@tonic-gate** Carriage Return delays 46*7c478bd9Sstevel@tonic-gate*/ 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gateint CRbits = CRDELAY; 49*7c478bd9Sstevel@tonic-gatestruct delay CRdelay[] = 50*7c478bd9Sstevel@tonic-gate{ 51*7c478bd9Sstevel@tonic-gate 0, CR0, 52*7c478bd9Sstevel@tonic-gate 9, CR3, 53*7c478bd9Sstevel@tonic-gate 80, CR1, 54*7c478bd9Sstevel@tonic-gate 160, CR2, 55*7c478bd9Sstevel@tonic-gate -1 56*7c478bd9Sstevel@tonic-gate}; 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate/* 59*7c478bd9Sstevel@tonic-gate** New Line delays 60*7c478bd9Sstevel@tonic-gate*/ 61*7c478bd9Sstevel@tonic-gate 62*7c478bd9Sstevel@tonic-gateint NLbits = NLDELAY; 63*7c478bd9Sstevel@tonic-gatestruct delay NLdelay[] = 64*7c478bd9Sstevel@tonic-gate{ 65*7c478bd9Sstevel@tonic-gate 0, NL0, 66*7c478bd9Sstevel@tonic-gate 66, NL1, /* special M37 delay */ 67*7c478bd9Sstevel@tonic-gate 100, NL2, 68*7c478bd9Sstevel@tonic-gate -1 69*7c478bd9Sstevel@tonic-gate}; 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate 72*7c478bd9Sstevel@tonic-gate/* 73*7c478bd9Sstevel@tonic-gate** Back Space delays 74*7c478bd9Sstevel@tonic-gate*/ 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gateint BSbits = BSDELAY; 77*7c478bd9Sstevel@tonic-gatestruct delay BSdelay[] = 78*7c478bd9Sstevel@tonic-gate{ 79*7c478bd9Sstevel@tonic-gate 0, BS0, 80*7c478bd9Sstevel@tonic-gate -1 81*7c478bd9Sstevel@tonic-gate}; 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate/* 85*7c478bd9Sstevel@tonic-gate** TaB delays 86*7c478bd9Sstevel@tonic-gate*/ 87*7c478bd9Sstevel@tonic-gate 88*7c478bd9Sstevel@tonic-gateint TBbits = TBDELAY; 89*7c478bd9Sstevel@tonic-gatestruct delay TBdelay[] = 90*7c478bd9Sstevel@tonic-gate{ 91*7c478bd9Sstevel@tonic-gate 0, TAB0, 92*7c478bd9Sstevel@tonic-gate 11, TAB1, /* special M37 delay */ 93*7c478bd9Sstevel@tonic-gate -1 94*7c478bd9Sstevel@tonic-gate}; 95*7c478bd9Sstevel@tonic-gate 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gate/* 98*7c478bd9Sstevel@tonic-gate** Form Feed delays 99*7c478bd9Sstevel@tonic-gate*/ 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateint FFbits = VTDELAY; 102*7c478bd9Sstevel@tonic-gatestruct delay FFdelay[] = 103*7c478bd9Sstevel@tonic-gate{ 104*7c478bd9Sstevel@tonic-gate 0, FF0, 105*7c478bd9Sstevel@tonic-gate 2000, FF1, 106*7c478bd9Sstevel@tonic-gate -1 107*7c478bd9Sstevel@tonic-gate}; 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate#ifdef CBVIRTTERM 110*7c478bd9Sstevel@tonic-gate/* 111*7c478bd9Sstevel@tonic-gate * Map from the universal tables in termcap to the particular numbers 112*7c478bd9Sstevel@tonic-gate * this system uses. The lack of standardization of terminal numbers 113*7c478bd9Sstevel@tonic-gate * is a botch but such is life. 114*7c478bd9Sstevel@tonic-gate */ 115*7c478bd9Sstevel@tonic-gatestruct vt_map { 116*7c478bd9Sstevel@tonic-gate char stdnum; 117*7c478bd9Sstevel@tonic-gate char localnum; 118*7c478bd9Sstevel@tonic-gate} vt_map[] = { 119*7c478bd9Sstevel@tonic-gate#ifdef TERM_TEC 120*7c478bd9Sstevel@tonic-gate 1, TERM_TEC, 121*7c478bd9Sstevel@tonic-gate#endif 122*7c478bd9Sstevel@tonic-gate#ifdef TERM_V61 123*7c478bd9Sstevel@tonic-gate 2, TERM_V61, 124*7c478bd9Sstevel@tonic-gate#endif 125*7c478bd9Sstevel@tonic-gate#ifdef TERM_V10 126*7c478bd9Sstevel@tonic-gate 3, TERM_V10, 127*7c478bd9Sstevel@tonic-gate#endif 128*7c478bd9Sstevel@tonic-gate#ifdef TERM_TEX 129*7c478bd9Sstevel@tonic-gate 4, TERM_TEX, 130*7c478bd9Sstevel@tonic-gate#endif 131*7c478bd9Sstevel@tonic-gate#ifdef TERM_D40 132*7c478bd9Sstevel@tonic-gate 5, TERM_D40, 133*7c478bd9Sstevel@tonic-gate#endif 134*7c478bd9Sstevel@tonic-gate#ifdef TERM_H45 135*7c478bd9Sstevel@tonic-gate 6, TERM_H45, 136*7c478bd9Sstevel@tonic-gate#endif 137*7c478bd9Sstevel@tonic-gate#ifdef TERM_D42 138*7c478bd9Sstevel@tonic-gate 7, TERM_D42, 139*7c478bd9Sstevel@tonic-gate#endif 140*7c478bd9Sstevel@tonic-gate#ifdef TERM_C100 141*7c478bd9Sstevel@tonic-gate 8, TERM_C100, 142*7c478bd9Sstevel@tonic-gate#endif 143*7c478bd9Sstevel@tonic-gate#ifdef TERM_MIME 144*7c478bd9Sstevel@tonic-gate 9, TERM_MIME, 145*7c478bd9Sstevel@tonic-gate#endif 146*7c478bd9Sstevel@tonic-gate 0,0 147*7c478bd9Sstevel@tonic-gate}; 148*7c478bd9Sstevel@tonic-gate#endif 149