Commit | Line | Data |
---|---|---|
f7e03007 | 1 | /* |
46e9ea25 KB |
2 | * Copyright (c) 1983 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that this notice is preserved and that due credit is given | |
7 | * to the University of California at Berkeley. The name of the University | |
8 | * may not be used to endorse or promote products derived from this | |
9 | * software without specific prior written permission. This software | |
10 | * is provided ``as is'' without express or implied warranty. | |
f7e03007 EW |
11 | */ |
12 | ||
46e9ea25 KB |
13 | #ifndef lint |
14 | static char sccsid[] = "@(#)ttzentec.c 3.2 (Berkeley) %G%"; | |
15 | #endif /* not lint */ | |
16 | ||
f7e03007 EW |
17 | #include "ww.h" |
18 | #include "tt.h" | |
19 | ||
20 | /* | |
21 | * Zentec 1021 | |
22 | * | |
23 | * We let the termcap entry specify how to enter and exit graphics mode, | |
24 | * since it varies with what the terminal is emulating. | |
25 | */ | |
26 | ||
27 | #define G (WWM_GRP << WWC_MSHIFT) | |
28 | short zentec_frame[16] = { | |
29 | ' ', 'x'|G, 'q'|G, 'm'|G, | |
30 | 'x'|G, 'x'|G, 'l'|G, 't'|G, | |
31 | 'q'|G, 'j'|G, 'q'|G, 'v'|G, | |
32 | 'k'|G, 'u'|G, 'w'|G, 'n'|G | |
33 | }; | |
34 | ||
35 | tt_zentec() | |
36 | { | |
37 | if (tt_generic() < 0) | |
38 | return -1; | |
39 | if (tt.tt_availmodes | WWM_GRP) | |
40 | tt.tt_frame = zentec_frame; | |
41 | return 0; | |
42 | } |