1 /* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Edward Wang at The University of California, Berkeley. 7 * 8 * %sccs.include.redist.c% 9 */ 10 11 #ifndef lint 12 static char sccsid[] = "@(#)tth29.c 8.1 (Berkeley) 06/06/93"; 13 #endif /* not lint */ 14 15 #include "ww.h" 16 #include "tt.h" 17 #include "char.h" 18 19 /* 20 * H29 Driver 21 * 22 * WWM_USR mode is alternate character set. 23 * 24 kC|h29|heath-29|z29|zenith-29:\ 25 :am:bc=\ED:bt=\E-:cr=^M:do=^J:nl=^J:bl=^G:\ 26 :al=\EL:le=^H:bs:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :co#80:dc=\EN:\ 27 :dl=1*\EM:do=\EB:ei=\EO:ho=\EH:im=\E@:li#24:mi:nd=\EC:as=\EF:ae=\EG:\ 28 :ms:ta=^I:pt:sr=\EI:se=\Eq:so=\Ep:up=\EA:vs=\Ex4:ve=\Ey4:\ 29 :kb=^H:ku=\EA:kd=\EB:kl=\ED:kr=\EC:kh=\EH:kn#1:k0=\E~:l0=HOME:\ 30 :k1=\ES:k2=\ET:k3=\EU:k4=\EV:k5=\EW:k6=\EP:k7=\EQ:k8=\ER:k9=\E01:\ 31 :es:hs:ts=\Ej\Ex5\Ex1\EY8%+ \Eo:fs=\Ek\Ey5:ds=\Ey1:us=\Es8:ue=\Es0: 32 * 33 */ 34 35 h29_setmodes(new) 36 register new; 37 { 38 register modes = '0'; 39 40 if (new & WWM_REV) 41 modes += 0x01; 42 if (new & WWM_BLK) 43 modes += 0x02; 44 if (new & WWM_DIM) 45 modes += 0x04; 46 if (new & WWM_UL) 47 modes += 0x08; 48 if (new & WWM_USR) 49 modes += 0x10; 50 ttesc('s'); 51 ttputc(modes); 52 if (new & WWM_GRP) { 53 if ((tt.tt_modes & WWM_GRP) == 0) 54 ttesc('F'); 55 } else 56 if (tt.tt_modes & WWM_GRP) 57 ttesc('G'); 58 tt.tt_modes = new; 59 } 60 61 tt_h29() 62 { 63 if (tt_h19() < 0) 64 return -1; 65 tt.tt_setmodes = h29_setmodes; 66 tt.tt_availmodes |= WWM_BLK|WWM_UL|WWM_DIM|WWM_USR; 67 return 0; 68 } 69