xref: /original-bsd/usr.bin/window/ttwyse75.c (revision c3e32dec)
1 /*
2  * Copyright 1987 by David C. Elliott, MIPS Computer Systems.
3  *
4  * Unlimited redistribution allowed as long as this notice
5  * is kept intact.
6  */
7 
8 /*
9  * Copyright (c) 1988, 1993
10  *	The Regents of the University of California.  All rights reserved.
11  *
12  * This code is derived from software contributed to Berkeley by
13  * David C. Elliott, of MIPS Computer Systems.
14  *
15  * %sccs.include.redist.c%
16  */
17 
18 #ifndef lint
19 static char sccsid[] = "@(#)ttwyse75.c	8.1 (Berkeley) 06/06/93";
20 #endif /* not lint */
21 
22 #include "ww.h"
23 #include "tt.h"
24 
25 #define G (WWM_GRP << WWC_MSHIFT)
26 short wyse75_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,	'v'|G
31 };
32 
33 extern struct tt_str *gen_AS;
34 extern struct tt_str *gen_AE;
35 
36 tt_wyse75()
37 {
38 	static struct tt_str ae = { "\033(B", 3 };
39 	static struct tt_str as = { "\033(0", 3 };
40 
41 	if (tt_generic() < 0)
42 		return -1;
43 	tt.tt_availmodes |= WWM_GRP;
44 	tt.tt_frame = wyse75_frame;
45 	if (gen_AS == 0)
46 		gen_AS = &as;
47 	if (gen_AE == 0)
48 		gen_AE = &ae;
49 	return 0;
50 }
51