xref: /csrg-svn/usr.bin/tn3270/api/astosc.h (revision 62317)
148754Sbostic /*-
2*62317Sbostic  * Copyright (c) 1988, 1993
3*62317Sbostic  *	The Regents of the University of California.  All rights reserved.
433820Sbostic  *
548754Sbostic  * %sccs.include.redist.c%
633820Sbostic  *
7*62317Sbostic  *	@(#)astosc.h	8.1 (Berkeley) 06/06/93
833820Sbostic  */
933820Sbostic 
1033820Sbostic /*
1131241Sminshall  * This defines the structure used to translate:
1231241Sminshall  *
1331241Sminshall  *	ascii name ==> (scancode, shiftstate)
1431241Sminshall  *
1531241Sminshall  * (Actually, map3270 does "ascii name ==> index", and
1631241Sminshall  * termin does "index ==> (scancode, shiftstate)".  Both
1731241Sminshall  * mappings use this structure.)
1831241Sminshall  */
1931241Sminshall 
2031241Sminshall #define	INCLUDED_ASTOSC
2131241Sminshall 
2231241Sminshall struct astosc {
2331241Sminshall     unsigned char
2431241Sminshall 	scancode,		/* Scan code for this function */
2531241Sminshall 	shiftstate;		/* Shift state for this function */
2631245Sminshall     enum ctlrfcn function;	/* Internal function identifier */
2731241Sminshall     char *name;			/* Name of this function */
2831241Sminshall };
2931241Sminshall 
3031241Sminshall int ascii_to_index();		/* Function to feed InitControl() */
3131605Sminshall 
3231605Sminshall extern struct astosc astosc[256];
33