xref: /csrg-svn/usr.bin/window/ttzentec.c (revision 62469)
129717Sedward /*
2*62469Sbostic  * Copyright (c) 1983, 1993
3*62469Sbostic  *	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%
929717Sedward  */
1029717Sedward 
1133514Sbostic #ifndef lint
12*62469Sbostic static char sccsid[] = "@(#)ttzentec.c	8.1 (Berkeley) 06/06/93";
1333514Sbostic #endif /* not lint */
1433514Sbostic 
1529717Sedward #include "ww.h"
1629717Sedward #include "tt.h"
1729717Sedward 
1829717Sedward /*
1929717Sedward  * Zentec 1021
2029717Sedward  *
2129717Sedward  * We let the termcap entry specify how to enter and exit graphics mode,
2229717Sedward  * since it varies with what the terminal is emulating.
2329717Sedward  */
2429717Sedward 
2529717Sedward #define G (WWM_GRP << WWC_MSHIFT)
2629717Sedward short zentec_frame[16] = {
2729717Sedward 	' ',	'x'|G,	'q'|G,	'm'|G,
2829717Sedward 	'x'|G,	'x'|G,	'l'|G,	't'|G,
2929717Sedward 	'q'|G,	'j'|G,	'q'|G,	'v'|G,
3029717Sedward 	'k'|G,	'u'|G,	'w'|G,	'n'|G
3129717Sedward };
3229717Sedward 
tt_zentec()3329717Sedward tt_zentec()
3429717Sedward {
3529717Sedward 	if (tt_generic() < 0)
3629717Sedward 		return -1;
3729717Sedward 	if (tt.tt_availmodes | WWM_GRP)
3829717Sedward 		tt.tt_frame = zentec_frame;
3929717Sedward 	return 0;
4029717Sedward }
41