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[] = "@(#)ttzentec.c 8.1 (Berkeley) 06/06/93";
13 #endif /* not lint */
14
15 #include "ww.h"
16 #include "tt.h"
17
18 /*
19 * Zentec 1021
20 *
21 * We let the termcap entry specify how to enter and exit graphics mode,
22 * since it varies with what the terminal is emulating.
23 */
24
25 #define G (WWM_GRP << WWC_MSHIFT)
26 short zentec_frame[16] = {
27 ' ', 'x'|G, 'q'|G, 'm'|G,
28 'x'|G, 'x'|G, 'l'|G, 't'|G,
29 'q'|G, 'j'|G, 'q'|G, 'v'|G,
30 'k'|G, 'u'|G, 'w'|G, 'n'|G
31 };
32
tt_zentec()33 tt_zentec()
34 {
35 if (tt_generic() < 0)
36 return -1;
37 if (tt.tt_availmodes | WWM_GRP)
38 tt.tt_frame = zentec_frame;
39 return 0;
40 }
41