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#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */ 23*0Sstevel@tonic-gate/* 24*0Sstevel@tonic-gate** SYSTEM DEPENDENT TERMINAL DELAY TABLES 25*0Sstevel@tonic-gate** 26*0Sstevel@tonic-gate** CB/Unix 2.3 27*0Sstevel@tonic-gate** 28*0Sstevel@tonic-gate** This looks like V7, and it even works, but the kernel really 29*0Sstevel@tonic-gate** only has one bit for each kind of delay so it's somewhat 30*0Sstevel@tonic-gate** inaccurate. But it tries to simulate v7. 31*0Sstevel@tonic-gate** 32*0Sstevel@tonic-gate** This file maintains the correspondence between the delays 33*0Sstevel@tonic-gate** defined in /etc/termcap and the delay algorithms on a 34*0Sstevel@tonic-gate** particular system. For each type of delay, the bits used 35*0Sstevel@tonic-gate** for that delay must be specified (in XXbits) and a table 36*0Sstevel@tonic-gate** must be defined giving correspondences between delays and 37*0Sstevel@tonic-gate** algorithms. Algorithms which are not fixed delays (such 38*0Sstevel@tonic-gate** as dependent on current column or line number) must be 39*0Sstevel@tonic-gate** kludged in some way at this time. 40*0Sstevel@tonic-gate*/ 41*0Sstevel@tonic-gate 42*0Sstevel@tonic-gate 43*0Sstevel@tonic-gate 44*0Sstevel@tonic-gate/* 45*0Sstevel@tonic-gate** Carriage Return delays 46*0Sstevel@tonic-gate*/ 47*0Sstevel@tonic-gate 48*0Sstevel@tonic-gateint CRbits = CRDELAY; 49*0Sstevel@tonic-gatestruct delay CRdelay[] = 50*0Sstevel@tonic-gate{ 51*0Sstevel@tonic-gate 0, CR0, 52*0Sstevel@tonic-gate 9, CR3, 53*0Sstevel@tonic-gate 80, CR1, 54*0Sstevel@tonic-gate 160, CR2, 55*0Sstevel@tonic-gate -1 56*0Sstevel@tonic-gate}; 57*0Sstevel@tonic-gate 58*0Sstevel@tonic-gate/* 59*0Sstevel@tonic-gate** New Line delays 60*0Sstevel@tonic-gate*/ 61*0Sstevel@tonic-gate 62*0Sstevel@tonic-gateint NLbits = NLDELAY; 63*0Sstevel@tonic-gatestruct delay NLdelay[] = 64*0Sstevel@tonic-gate{ 65*0Sstevel@tonic-gate 0, NL0, 66*0Sstevel@tonic-gate 66, NL1, /* special M37 delay */ 67*0Sstevel@tonic-gate 100, NL2, 68*0Sstevel@tonic-gate -1 69*0Sstevel@tonic-gate}; 70*0Sstevel@tonic-gate 71*0Sstevel@tonic-gate 72*0Sstevel@tonic-gate/* 73*0Sstevel@tonic-gate** Back Space delays 74*0Sstevel@tonic-gate*/ 75*0Sstevel@tonic-gate 76*0Sstevel@tonic-gateint BSbits = BSDELAY; 77*0Sstevel@tonic-gatestruct delay BSdelay[] = 78*0Sstevel@tonic-gate{ 79*0Sstevel@tonic-gate 0, BS0, 80*0Sstevel@tonic-gate -1 81*0Sstevel@tonic-gate}; 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gate 84*0Sstevel@tonic-gate/* 85*0Sstevel@tonic-gate** TaB delays 86*0Sstevel@tonic-gate*/ 87*0Sstevel@tonic-gate 88*0Sstevel@tonic-gateint TBbits = TBDELAY; 89*0Sstevel@tonic-gatestruct delay TBdelay[] = 90*0Sstevel@tonic-gate{ 91*0Sstevel@tonic-gate 0, TAB0, 92*0Sstevel@tonic-gate 11, TAB1, /* special M37 delay */ 93*0Sstevel@tonic-gate -1 94*0Sstevel@tonic-gate}; 95*0Sstevel@tonic-gate 96*0Sstevel@tonic-gate 97*0Sstevel@tonic-gate/* 98*0Sstevel@tonic-gate** Form Feed delays 99*0Sstevel@tonic-gate*/ 100*0Sstevel@tonic-gate 101*0Sstevel@tonic-gateint FFbits = VTDELAY; 102*0Sstevel@tonic-gatestruct delay FFdelay[] = 103*0Sstevel@tonic-gate{ 104*0Sstevel@tonic-gate 0, FF0, 105*0Sstevel@tonic-gate 2000, FF1, 106*0Sstevel@tonic-gate -1 107*0Sstevel@tonic-gate}; 108*0Sstevel@tonic-gate 109*0Sstevel@tonic-gate#ifdef CBVIRTTERM 110*0Sstevel@tonic-gate/* 111*0Sstevel@tonic-gate * Map from the universal tables in termcap to the particular numbers 112*0Sstevel@tonic-gate * this system uses. The lack of standardization of terminal numbers 113*0Sstevel@tonic-gate * is a botch but such is life. 114*0Sstevel@tonic-gate */ 115*0Sstevel@tonic-gatestruct vt_map { 116*0Sstevel@tonic-gate char stdnum; 117*0Sstevel@tonic-gate char localnum; 118*0Sstevel@tonic-gate} vt_map[] = { 119*0Sstevel@tonic-gate#ifdef TERM_TEC 120*0Sstevel@tonic-gate 1, TERM_TEC, 121*0Sstevel@tonic-gate#endif 122*0Sstevel@tonic-gate#ifdef TERM_V61 123*0Sstevel@tonic-gate 2, TERM_V61, 124*0Sstevel@tonic-gate#endif 125*0Sstevel@tonic-gate#ifdef TERM_V10 126*0Sstevel@tonic-gate 3, TERM_V10, 127*0Sstevel@tonic-gate#endif 128*0Sstevel@tonic-gate#ifdef TERM_TEX 129*0Sstevel@tonic-gate 4, TERM_TEX, 130*0Sstevel@tonic-gate#endif 131*0Sstevel@tonic-gate#ifdef TERM_D40 132*0Sstevel@tonic-gate 5, TERM_D40, 133*0Sstevel@tonic-gate#endif 134*0Sstevel@tonic-gate#ifdef TERM_H45 135*0Sstevel@tonic-gate 6, TERM_H45, 136*0Sstevel@tonic-gate#endif 137*0Sstevel@tonic-gate#ifdef TERM_D42 138*0Sstevel@tonic-gate 7, TERM_D42, 139*0Sstevel@tonic-gate#endif 140*0Sstevel@tonic-gate#ifdef TERM_C100 141*0Sstevel@tonic-gate 8, TERM_C100, 142*0Sstevel@tonic-gate#endif 143*0Sstevel@tonic-gate#ifdef TERM_MIME 144*0Sstevel@tonic-gate 9, TERM_MIME, 145*0Sstevel@tonic-gate#endif 146*0Sstevel@tonic-gate 0,0 147*0Sstevel@tonic-gate}; 148*0Sstevel@tonic-gate#endif 149