131068Sminshall /* 2*33815Sbostic * Copyright (c) 1988 Regents of the University of California. 3*33815Sbostic * All rights reserved. 4*33815Sbostic * 5*33815Sbostic * Redistribution and use in source and binary forms are permitted 6*33815Sbostic * provided that this notice is preserved and that due credit is given 7*33815Sbostic * to the University of California at Berkeley. The name of the University 8*33815Sbostic * may not be used to endorse or promote products derived from this 9*33815Sbostic * software without specific prior written permission. This software 10*33815Sbostic * is provided ``as is'' without express or implied warranty. 11*33815Sbostic * 12*33815Sbostic * @(#)globals.h 3.2 (Berkeley) 03/28/88 13*33815Sbostic */ 14*33815Sbostic 15*33815Sbostic /* 1631068Sminshall * This file contains all the globals used by tn3270. 1731068Sminshall * 1831068Sminshall * Since various files may want to reference this file, 1931068Sminshall * and since they may only want subsets of the globals, 2031068Sminshall * we assume they have #include'd all the other .h files 2131068Sminshall * first, and we only give those globals relevant to 2231068Sminshall * the #include'd .h files. 2331893Sminshall * 2431068Sminshall */ 2531068Sminshall 2631068Sminshall #if defined(DEFINING_INSTANCES) 2731068Sminshall #define EXTERN 2831068Sminshall #else 2931068Sminshall #define EXTERN extern 3031068Sminshall #endif 3131068Sminshall 3231068Sminshall 3331209Sminshall EXTERN int 3431209Sminshall /* 3531209Sminshall * shell_active ==> 3631209Sminshall * 1. Don't do input. 3731209Sminshall * 2. Don't do output. 3831209Sminshall * 3. Don't block in select. 3931209Sminshall * 4. When nothing to do, call shell_continue() 4031209Sminshall */ 4131209Sminshall shell_active; 4231209Sminshall 4331209Sminshall 4431068Sminshall #if defined(INCLUDED_OPTIONS) 4531068Sminshall EXTERN int OptHome; /* where home should send us */ 4631068Sminshall 4731068Sminshall EXTERN int OptLeftMargin; /* where new line should send us */ 4831068Sminshall 4931068Sminshall EXTERN char OptColTabs[80]; /* local tab stops */ 5031068Sminshall 5131068Sminshall EXTERN int OptAPLmode; 5231068Sminshall 5331068Sminshall EXTERN int OptNullProcessing; /* improved null processing */ 5431068Sminshall 5531068Sminshall EXTERN int OptZonesMode; /* zones mode off */ 5631068Sminshall 5731068Sminshall EXTERN int OptEnterNL; /* regular enter/new line keys */ 5831068Sminshall 5931068Sminshall EXTERN int OptColFieldTab; /* regular column/field tab keys */ 6031068Sminshall 6131068Sminshall EXTERN int OptPacing; /* do pacing */ 6231068Sminshall 6331068Sminshall EXTERN int OptAlphaInNumeric; /* allow alpha in numeric fields */ 6431068Sminshall 6531068Sminshall EXTERN int OptHome; 6631068Sminshall 6731068Sminshall EXTERN int OptLeftMargin; 6831068Sminshall 6931068Sminshall EXTERN int OptWordWrap; 7031068Sminshall #endif 7131068Sminshall 7231068Sminshall #if defined(INCLUDED_SCREEN) 7331068Sminshall EXTERN ScreenImage 7431068Sminshall Host[MAXSCREENSIZE]; /* host view of screen */ 7531068Sminshall 7631068Sminshall EXTERN char Orders[256]; /* Non-zero for orders */ 7731068Sminshall 7831068Sminshall /* Run-time screen geometry */ 7931068Sminshall EXTERN int 8031068Sminshall MaxNumberLines, /* How many rows the 3270 COULD have */ 8131068Sminshall MaxNumberColumns, /* How many columns the 3270 COULD have */ 8231068Sminshall NumberLines, /* How many lines the 3270 screen contains */ 8331068Sminshall NumberColumns, /* How many columns the 3270 screen contains */ 8431068Sminshall ScreenSize; 8531068Sminshall 8631068Sminshall EXTERN int CursorAddress; /* where cursor is */ 8731068Sminshall EXTERN int BufferAddress; /* where writes are going */ 8831068Sminshall 8931068Sminshall EXTERN int Lowest, Highest; 9031068Sminshall 9131068Sminshall extern char CIABuffer[]; 9231068Sminshall 9331068Sminshall EXTERN int UnLocked; /* is the keyboard unlocked */ 9431068Sminshall EXTERN int AidByte; 9531068Sminshall 9631068Sminshall #endif 9731068Sminshall 9831068Sminshall #if defined(INCLUDED_STATE) 9931068Sminshall #endif 10031182Sminshall 10131182Sminshall #if defined(INCLUDED_OIA) 10231182Sminshall 10331191Sminshall EXTERN OIA OperatorInformationArea; 10431182Sminshall 10531516Sminshall EXTERN int 10631516Sminshall oia_modified, /* Has the oia been modified */ 10731516Sminshall ps_modified; /* Has the presentation space been modified */ 10831191Sminshall 10931182Sminshall #endif /* defined(INCLUDED_OIA) */ 110