Commit | Line | Data |
---|---|---|
8ebd1663 GM |
1 | /* |
2 | * This file contains all the globals used by tn3270. | |
3 | * | |
4 | * Since various files may want to reference this file, | |
5 | * and since they may only want subsets of the globals, | |
6 | * we assume they have #include'd all the other .h files | |
7 | * first, and we only give those globals relevant to | |
8 | * the #include'd .h files. | |
992de934 GM |
9 | * |
10 | * @(#)globals.h 1.10 (Berkeley) %G% | |
8ebd1663 GM |
11 | */ |
12 | ||
13 | #if defined(DEFINING_INSTANCES) | |
14 | #define EXTERN | |
15 | #else | |
16 | #define EXTERN extern | |
17 | #endif | |
18 | ||
19 | ||
21067ec8 GM |
20 | EXTERN int |
21 | /* | |
22 | * shell_active ==> | |
23 | * 1. Don't do input. | |
24 | * 2. Don't do output. | |
25 | * 3. Don't block in select. | |
26 | * 4. When nothing to do, call shell_continue() | |
27 | */ | |
28 | shell_active; | |
29 | ||
30 | ||
8ebd1663 GM |
31 | #if defined(INCLUDED_OPTIONS) |
32 | EXTERN int OptHome; /* where home should send us */ | |
33 | ||
34 | EXTERN int OptLeftMargin; /* where new line should send us */ | |
35 | ||
36 | EXTERN char OptColTabs[80]; /* local tab stops */ | |
37 | ||
38 | EXTERN int OptAPLmode; | |
39 | ||
40 | EXTERN int OptNullProcessing; /* improved null processing */ | |
41 | ||
42 | EXTERN int OptZonesMode; /* zones mode off */ | |
43 | ||
44 | EXTERN int OptEnterNL; /* regular enter/new line keys */ | |
45 | ||
46 | EXTERN int OptColFieldTab; /* regular column/field tab keys */ | |
47 | ||
48 | EXTERN int OptPacing; /* do pacing */ | |
49 | ||
50 | EXTERN int OptAlphaInNumeric; /* allow alpha in numeric fields */ | |
51 | ||
52 | EXTERN int OptHome; | |
53 | ||
54 | EXTERN int OptLeftMargin; | |
55 | ||
56 | EXTERN int OptWordWrap; | |
57 | #endif | |
58 | ||
59 | #if defined(INCLUDED_SCREEN) | |
60 | EXTERN ScreenImage | |
61 | Host[MAXSCREENSIZE]; /* host view of screen */ | |
8ebd1663 GM |
62 | |
63 | EXTERN char Orders[256]; /* Non-zero for orders */ | |
64 | ||
65 | /* Run-time screen geometry */ | |
66 | EXTERN int | |
67 | MaxNumberLines, /* How many rows the 3270 COULD have */ | |
68 | MaxNumberColumns, /* How many columns the 3270 COULD have */ | |
69 | NumberLines, /* How many lines the 3270 screen contains */ | |
70 | NumberColumns, /* How many columns the 3270 screen contains */ | |
71 | ScreenSize; | |
72 | ||
73 | EXTERN int CursorAddress; /* where cursor is */ | |
74 | EXTERN int BufferAddress; /* where writes are going */ | |
75 | ||
76 | EXTERN int Lowest, Highest; | |
77 | ||
78 | extern char CIABuffer[]; | |
79 | ||
80 | EXTERN int UnLocked; /* is the keyboard unlocked */ | |
81 | EXTERN int AidByte; | |
82 | ||
8ebd1663 GM |
83 | #endif |
84 | ||
85 | #if defined(INCLUDED_STATE) | |
86 | #endif | |
d6ebedbd GM |
87 | |
88 | #if defined(INCLUDED_OIA) | |
89 | ||
92f7501a GM |
90 | EXTERN OIA OperatorInformationArea; |
91 | ||
214f1a29 GM |
92 | EXTERN int |
93 | oia_modified, /* Has the oia been modified */ | |
94 | ps_modified; /* Has the presentation space been modified */ | |
d6ebedbd GM |
95 | |
96 | #endif /* defined(INCLUDED_OIA) */ |