1 /*- 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)astosc.h 8.1 (Berkeley) 06/06/93 8 */ 9 10 /* 11 * This defines the structure used to translate: 12 * 13 * ascii name ==> (scancode, shiftstate) 14 * 15 * (Actually, map3270 does "ascii name ==> index", and 16 * termin does "index ==> (scancode, shiftstate)". Both 17 * mappings use this structure.) 18 */ 19 20 #define INCLUDED_ASTOSC 21 22 struct astosc { 23 unsigned char 24 scancode, /* Scan code for this function */ 25 shiftstate; /* Shift state for this function */ 26 enum ctlrfcn function; /* Internal function identifier */ 27 char *name; /* Name of this function */ 28 }; 29 30 int ascii_to_index(); /* Function to feed InitControl() */ 31 32 extern struct astosc astosc[256]; 33