1 /* 2 * Copyright (c) 1988 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * @(#)globals.h 3.3 (Berkeley) 06/29/88 18 */ 19 20 /* 21 * This file contains all the globals used by tn3270. 22 * 23 * Since various files may want to reference this file, 24 * and since they may only want subsets of the globals, 25 * we assume they have #include'd all the other .h files 26 * first, and we only give those globals relevant to 27 * the #include'd .h files. 28 * 29 */ 30 31 #if defined(DEFINING_INSTANCES) 32 #define EXTERN 33 #else 34 #define EXTERN extern 35 #endif 36 37 38 EXTERN int 39 /* 40 * shell_active ==> 41 * 1. Don't do input. 42 * 2. Don't do output. 43 * 3. Don't block in select. 44 * 4. When nothing to do, call shell_continue() 45 */ 46 shell_active; 47 48 49 #if defined(INCLUDED_OPTIONS) 50 EXTERN int OptHome; /* where home should send us */ 51 52 EXTERN int OptLeftMargin; /* where new line should send us */ 53 54 EXTERN char OptColTabs[80]; /* local tab stops */ 55 56 EXTERN int OptAPLmode; 57 58 EXTERN int OptNullProcessing; /* improved null processing */ 59 60 EXTERN int OptZonesMode; /* zones mode off */ 61 62 EXTERN int OptEnterNL; /* regular enter/new line keys */ 63 64 EXTERN int OptColFieldTab; /* regular column/field tab keys */ 65 66 EXTERN int OptPacing; /* do pacing */ 67 68 EXTERN int OptAlphaInNumeric; /* allow alpha in numeric fields */ 69 70 EXTERN int OptHome; 71 72 EXTERN int OptLeftMargin; 73 74 EXTERN int OptWordWrap; 75 #endif 76 77 #if defined(INCLUDED_SCREEN) 78 EXTERN ScreenImage 79 Host[MAXSCREENSIZE]; /* host view of screen */ 80 81 EXTERN char Orders[256]; /* Non-zero for orders */ 82 83 /* Run-time screen geometry */ 84 EXTERN int 85 MaxNumberLines, /* How many rows the 3270 COULD have */ 86 MaxNumberColumns, /* How many columns the 3270 COULD have */ 87 NumberLines, /* How many lines the 3270 screen contains */ 88 NumberColumns, /* How many columns the 3270 screen contains */ 89 ScreenSize; 90 91 EXTERN int CursorAddress; /* where cursor is */ 92 EXTERN int BufferAddress; /* where writes are going */ 93 94 EXTERN int Lowest, Highest; 95 96 extern char CIABuffer[]; 97 98 EXTERN int UnLocked; /* is the keyboard unlocked */ 99 EXTERN int AidByte; 100 101 #endif 102 103 #if defined(INCLUDED_STATE) 104 #endif 105 106 #if defined(INCLUDED_OIA) 107 108 EXTERN OIA OperatorInformationArea; 109 110 EXTERN int 111 oia_modified, /* Has the oia been modified */ 112 ps_modified; /* Has the presentation space been modified */ 113 114 #endif /* defined(INCLUDED_OIA) */ 115