132341Sedward /*
236480Sbostic * Copyright 1987 by David C. Elliott, MIPS Computer Systems.
332341Sedward *
436480Sbostic * Unlimited redistribution allowed as long as this notice
536480Sbostic * is kept intact.
632341Sedward */
732341Sedward
832341Sedward /*
9*62467Sbostic * Copyright (c) 1988, 1993
10*62467Sbostic * The Regents of the University of California. All rights reserved.
1132341Sedward *
1236480Sbostic * This code is derived from software contributed to Berkeley by
1342954Sbostic * David C. Elliott, of MIPS Computer Systems.
1436480Sbostic *
1542835Sbostic * %sccs.include.redist.c%
1632341Sedward */
1732341Sedward
1836480Sbostic #ifndef lint
19*62467Sbostic static char sccsid[] = "@(#)ttwyse60.c 8.1 (Berkeley) 06/06/93";
2036480Sbostic #endif /* not lint */
2136480Sbostic
2236480Sbostic #include "ww.h"
2336480Sbostic #include "tt.h"
2436480Sbostic
2532341Sedward #define G (WWM_GRP << WWC_MSHIFT)
2632341Sedward short wyse60_frame[16] = {
2732341Sedward ' ', '6'|G, ':'|G, '1'|G,
2832341Sedward '6'|G, '6'|G, '2'|G, '4'|G,
2932341Sedward ':'|G, '5'|G, ':'|G, '='|G,
3032341Sedward '3'|G, '9'|G, '0'|G, '0'|G
3132341Sedward };
3232341Sedward
3332341Sedward extern struct tt_str *gen_AS;
3432341Sedward extern struct tt_str *gen_AE;
3532341Sedward
tt_wyse60()3632341Sedward tt_wyse60()
3732341Sedward {
3832341Sedward static struct tt_str ae = { "\033H\003", 3 };
3932341Sedward static struct tt_str as = { "\033H\002", 3 };
4032341Sedward
4132341Sedward if (tt_generic() < 0)
4232341Sedward return -1;
4332341Sedward tt.tt_availmodes |= WWM_GRP;
4432341Sedward tt.tt_frame = wyse60_frame;
4532341Sedward if (gen_AS == 0)
4632341Sedward gen_AS = &as;
4732341Sedward if (gen_AE == 0)
4832341Sedward gen_AE = &ae;
4932341Sedward return 0;
5032341Sedward }
51