Commit | Line | Data |
---|---|---|
f473cb3f | 1 | /* |
dc139889 | 2 | * Copyright 1987 by David C. Elliott, MIPS Computer Systems. |
f473cb3f | 3 | * |
dc139889 KB |
4 | * Unlimited redistribution allowed as long as this notice |
5 | * is kept intact. | |
f473cb3f EW |
6 | */ |
7 | ||
8 | /* | |
dc139889 KB |
9 | * Copyright (c) 1988 The Regents of the University of California. |
10 | * All rights reserved. | |
f473cb3f | 11 | * |
dc139889 | 12 | * This code is derived from software contributed to Berkeley by |
3dd3a9e5 | 13 | * David C. Elliott, of MIPS Computer Systems. |
dc139889 | 14 | * |
87f529ec | 15 | * %sccs.include.redist.c% |
f473cb3f EW |
16 | */ |
17 | ||
dc139889 | 18 | #ifndef lint |
3dd3a9e5 | 19 | static char sccsid[] = "@(#)ttwyse60.c 3.4 (Berkeley) %G%"; |
dc139889 KB |
20 | #endif /* not lint */ |
21 | ||
22 | #include "ww.h" | |
23 | #include "tt.h" | |
24 | ||
f473cb3f EW |
25 | #define G (WWM_GRP << WWC_MSHIFT) |
26 | short wyse60_frame[16] = { | |
27 | ' ', '6'|G, ':'|G, '1'|G, | |
28 | '6'|G, '6'|G, '2'|G, '4'|G, | |
29 | ':'|G, '5'|G, ':'|G, '='|G, | |
30 | '3'|G, '9'|G, '0'|G, '0'|G | |
31 | }; | |
32 | ||
33 | extern struct tt_str *gen_AS; | |
34 | extern struct tt_str *gen_AE; | |
35 | ||
36 | tt_wyse60() | |
37 | { | |
38 | static struct tt_str ae = { "\033H\003", 3 }; | |
39 | static struct tt_str as = { "\033H\002", 3 }; | |
40 | ||
41 | if (tt_generic() < 0) | |
42 | return -1; | |
43 | tt.tt_availmodes |= WWM_GRP; | |
44 | tt.tt_frame = wyse60_frame; | |
45 | if (gen_AS == 0) | |
46 | gen_AS = &as; | |
47 | if (gen_AE == 0) | |
48 | gen_AE = &ae; | |
49 | return 0; | |
50 | } |