xref: /csrg-svn/usr.bin/window/ttf100.c (revision 62463)
118742Sedward /*
2*62463Sbostic  * Copyright (c) 1983, 1993
3*62463Sbostic  *	The Regents of the University of California.  All rights reserved.
433514Sbostic  *
542954Sbostic  * This code is derived from software contributed to Berkeley by
642954Sbostic  * Edward Wang at The University of California, Berkeley.
742954Sbostic  *
842835Sbostic  * %sccs.include.redist.c%
918742Sedward  */
1018742Sedward 
1133514Sbostic #ifndef lint
12*62463Sbostic static char sccsid[] = "@(#)ttf100.c	8.1 (Berkeley) 06/06/93";
1333514Sbostic #endif /* not lint */
1433514Sbostic 
1515007Sedward #include "ww.h"
1615007Sedward #include "tt.h"
1715007Sedward 
1815007Sedward /*
1915007Sedward  * Freedom 100
2015007Sedward  */
2115007Sedward 
2215733Sedward #define G (WWM_GRP << WWC_MSHIFT)
2315733Sedward short f100_frame[16] = {
2415733Sedward 	' ',	'J'|G,	'K'|G,	'A'|G,
2515733Sedward 	'J'|G,	'J'|G,	'B'|G,	'M'|G,
2615733Sedward 	'K'|G,	'D'|G,	'K'|G,	'O'|G,
2715733Sedward 	'C'|G,	'L'|G,	'N'|G,	'I'|G
2815007Sedward };
2924976Sedward extern struct tt_str *gen_AE, *gen_AS;
3015007Sedward 
tt_f100()3115007Sedward tt_f100()
3215007Sedward {
3324976Sedward 	static struct tt_str ae = { "\033%", 2 };
3424976Sedward 	static struct tt_str as = { "\033$", 2 };
3524976Sedward 
3615833Sedward 	if (tt_generic() < 0)
3715833Sedward 		return -1;
3815007Sedward 	tt.tt_frame = f100_frame;
3915733Sedward 	tt.tt_availmodes |= WWM_GRP;
4024976Sedward 	gen_AS = &as;
4124976Sedward 	gen_AE = &ae;
4215833Sedward 	return 0;
4315007Sedward }
44