lint
[unix-history] / usr / src / usr.bin / window / ttwyse60.c
CommitLineData
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
KB
12 * This code is derived from software contributed to Berkeley by
13 * David C. Elliott.
14 *
15 * Redistribution and use in source and binary forms are permitted
16 * provided that the above copyright notice and this paragraph are
17 * duplicated in all such forms and that any documentation,
18 * advertising materials, and other materials related to such
19 * distribution and use acknowledge that the software was developed
20 * by the University of California, Berkeley. The name of the
21 * University may not be used to endorse or promote products derived
22 * from this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
25 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
f473cb3f
EW
26 */
27
dc139889
KB
28#ifndef lint
29static char sccsid[] = "@(#)ttwyse60.c 3.2 (Berkeley) %G%";
30#endif /* not lint */
31
32#include "ww.h"
33#include "tt.h"
34
f473cb3f
EW
35#define G (WWM_GRP << WWC_MSHIFT)
36short wyse60_frame[16] = {
37 ' ', '6'|G, ':'|G, '1'|G,
38 '6'|G, '6'|G, '2'|G, '4'|G,
39 ':'|G, '5'|G, ':'|G, '='|G,
40 '3'|G, '9'|G, '0'|G, '0'|G
41};
42
43extern struct tt_str *gen_AS;
44extern struct tt_str *gen_AE;
45
46tt_wyse60()
47{
48 static struct tt_str ae = { "\033H\003", 3 };
49 static struct tt_str as = { "\033H\002", 3 };
50
51 if (tt_generic() < 0)
52 return -1;
53 tt.tt_availmodes |= WWM_GRP;
54 tt.tt_frame = wyse60_frame;
55 if (gen_AS == 0)
56 gen_AS = &as;
57 if (gen_AE == 0)
58 gen_AE = &ae;
59 return 0;
60}