xref: /csrg-svn/usr.bin/tn3270/api/astosc.h (revision 31890)
1 /*
2  * This defines the structure used to translate:
3  *
4  *	ascii name ==> (scancode, shiftstate)
5  *
6  * (Actually, map3270 does "ascii name ==> index", and
7  * termin does "index ==> (scancode, shiftstate)".  Both
8  * mappings use this structure.)
9  *
10  * @(#)astosc.h	1.4 (Berkeley) 07/17/87
11  */
12 
13 #define	INCLUDED_ASTOSC
14 
15 struct astosc {
16     unsigned char
17 	scancode,		/* Scan code for this function */
18 	shiftstate;		/* Shift state for this function */
19     enum ctlrfcn function;	/* Internal function identifier */
20     char *name;			/* Name of this function */
21 };
22 
23 int ascii_to_index();		/* Function to feed InitControl() */
24 
25 extern struct astosc astosc[256];
26