131241Sminshall /* 2*33820Sbostic * Copyright (c) 1988 Regents of the University of California. 3*33820Sbostic * All rights reserved. 4*33820Sbostic * 5*33820Sbostic * Redistribution and use in source and binary forms are permitted 6*33820Sbostic * provided that this notice is preserved and that due credit is given 7*33820Sbostic * to the University of California at Berkeley. The name of the University 8*33820Sbostic * may not be used to endorse or promote products derived from this 9*33820Sbostic * software without specific prior written permission. This software 10*33820Sbostic * is provided ``as is'' without express or implied warranty. 11*33820Sbostic * 12*33820Sbostic * @(#)astosc.h 3.2 (Berkeley) 03/28/88 13*33820Sbostic */ 14*33820Sbostic 15*33820Sbostic /* 1631241Sminshall * This defines the structure used to translate: 1731241Sminshall * 1831241Sminshall * ascii name ==> (scancode, shiftstate) 1931241Sminshall * 2031241Sminshall * (Actually, map3270 does "ascii name ==> index", and 2131241Sminshall * termin does "index ==> (scancode, shiftstate)". Both 2231241Sminshall * mappings use this structure.) 2331241Sminshall */ 2431241Sminshall 2531241Sminshall #define INCLUDED_ASTOSC 2631241Sminshall 2731241Sminshall struct astosc { 2831241Sminshall unsigned char 2931241Sminshall scancode, /* Scan code for this function */ 3031241Sminshall shiftstate; /* Shift state for this function */ 3131245Sminshall enum ctlrfcn function; /* Internal function identifier */ 3231241Sminshall char *name; /* Name of this function */ 3331241Sminshall }; 3431241Sminshall 3531241Sminshall int ascii_to_index(); /* Function to feed InitControl() */ 3631605Sminshall 3731605Sminshall extern struct astosc astosc[256]; 38