Commit | Line | Data |
---|---|---|
60de5df9 | 1 | /* |
a4ba3f14 KB |
2 | * Copyright (c) 1983, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
46e9ea25 | 4 | * |
3dd3a9e5 KB |
5 | * This code is derived from software contributed to Berkeley by |
6 | * Edward Wang at The University of California, Berkeley. | |
7 | * | |
87f529ec | 8 | * %sccs.include.redist.c% |
60de5df9 EW |
9 | */ |
10 | ||
46e9ea25 | 11 | #ifndef lint |
a4ba3f14 | 12 | static char sccsid[] = "@(#)tth29.c 8.1 (Berkeley) %G%"; |
46e9ea25 KB |
13 | #endif /* not lint */ |
14 | ||
a0a9320a EW |
15 | #include "ww.h" |
16 | #include "tt.h" | |
27c9228e | 17 | #include "char.h" |
a0a9320a EW |
18 | |
19 | /* | |
a6833679 EW |
20 | * H29 Driver |
21 | * | |
22 | * WWM_USR mode is alternate character set. | |
23 | * | |
a0a9320a EW |
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: | |
a6833679 EW |
32 | * |
33 | */ | |
a0a9320a | 34 | |
a0a9320a EW |
35 | h29_setmodes(new) |
36 | register new; | |
37 | { | |
38 | register modes = '0'; | |
39 | ||
40 | if (new & WWM_REV) | |
a6833679 | 41 | modes += 0x01; |
a0a9320a | 42 | if (new & WWM_BLK) |
a6833679 EW |
43 | modes += 0x02; |
44 | if (new & WWM_DIM) | |
45 | modes += 0x04; | |
a0a9320a | 46 | if (new & WWM_UL) |
a6833679 EW |
47 | modes += 0x08; |
48 | if (new & WWM_USR) | |
49 | modes += 0x10; | |
27c9228e EW |
50 | ttesc('s'); |
51 | ttputc(modes); | |
a0a9320a EW |
52 | if (new & WWM_GRP) { |
53 | if ((tt.tt_modes & WWM_GRP) == 0) | |
27c9228e | 54 | ttesc('F'); |
a0a9320a EW |
55 | } else |
56 | if (tt.tt_modes & WWM_GRP) | |
27c9228e | 57 | ttesc('G'); |
a0a9320a EW |
58 | tt.tt_modes = new; |
59 | } | |
60 | ||
a0a9320a EW |
61 | tt_h29() |
62 | { | |
63 | if (tt_h19() < 0) | |
64 | return -1; | |
c1a57462 | 65 | tt.tt_setmodes = h29_setmodes; |
a6833679 | 66 | tt.tt_availmodes |= WWM_BLK|WWM_UL|WWM_DIM|WWM_USR; |
a0a9320a EW |
67 | return 0; |
68 | } |