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