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[] = "@(#)ttwyse60.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 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 } 51