148760Sbostic /*-
2*62364Sbostic  * Copyright (c) 1988, 1993
3*62364Sbostic  *	The Regents of the University of California.  All rights reserved.
433815Sbostic  *
548760Sbostic  * %sccs.include.redist.c%
633815Sbostic  *
7*62364Sbostic  *	@(#)globals.h	8.1 (Berkeley) 06/06/93
833815Sbostic  */
933815Sbostic 
1033815Sbostic /*
1131068Sminshall  *	This file contains all the globals used by tn3270.
1231068Sminshall  *
1331068Sminshall  *	Since various files may want to reference this file,
1431068Sminshall  *	and since they may only want subsets of the globals,
1531068Sminshall  *	we assume they have #include'd all the other .h files
1631068Sminshall  *	first, and we only give those globals relevant to
1731068Sminshall  *	the #include'd .h files.
1831893Sminshall  *
1931068Sminshall  */
2031068Sminshall 
2131068Sminshall #if	defined(DEFINING_INSTANCES)
2231068Sminshall #define	EXTERN
2331068Sminshall #else
2431068Sminshall #define	EXTERN extern
2531068Sminshall #endif
2631068Sminshall 
2731068Sminshall 
2831209Sminshall EXTERN int
2931209Sminshall 		/*
3031209Sminshall 		 * shell_active ==>
3131209Sminshall 		 *		1.  Don't do input.
3231209Sminshall 		 *		2.  Don't do output.
3331209Sminshall 		 *		3.  Don't block in select.
3431209Sminshall 		 *		4.  When nothing to do, call shell_continue()
3531209Sminshall 		 */
3631209Sminshall 	shell_active;
3731209Sminshall 
3831209Sminshall 
3931068Sminshall #if	defined(INCLUDED_OPTIONS)
4031068Sminshall EXTERN int	OptHome;		/* where home should send us */
4131068Sminshall 
4231068Sminshall EXTERN int	OptLeftMargin;		/* where new line should send us */
4331068Sminshall 
4431068Sminshall EXTERN char	OptColTabs[80];		/* local tab stops */
4531068Sminshall 
4631068Sminshall EXTERN int	OptAPLmode;
4731068Sminshall 
4831068Sminshall EXTERN int	OptNullProcessing;	/* improved null processing */
4931068Sminshall 
5031068Sminshall EXTERN int	OptZonesMode;		/* zones mode off */
5131068Sminshall 
5231068Sminshall EXTERN int	OptEnterNL;		/* regular enter/new line keys */
5331068Sminshall 
5431068Sminshall EXTERN int	OptColFieldTab;		/* regular column/field tab keys */
5531068Sminshall 
5631068Sminshall EXTERN int	OptPacing;		/* do pacing */
5731068Sminshall 
5831068Sminshall EXTERN int	OptAlphaInNumeric;	/* allow alpha in numeric fields */
5931068Sminshall 
6031068Sminshall EXTERN int	OptHome;
6131068Sminshall 
6231068Sminshall EXTERN int	OptLeftMargin;
6331068Sminshall 
6431068Sminshall EXTERN int	OptWordWrap;
6531068Sminshall #endif
6631068Sminshall 
6731068Sminshall #if	defined(INCLUDED_SCREEN)
6831068Sminshall EXTERN ScreenImage
6931068Sminshall 	Host[MAXSCREENSIZE];		/* host view of screen */
7031068Sminshall 
7131068Sminshall EXTERN char	Orders[256];			/* Non-zero for orders */
7231068Sminshall 
7331068Sminshall 			/* Run-time screen geometry */
7431068Sminshall EXTERN int
7531068Sminshall 	MaxNumberLines,		/* How many rows the 3270 COULD have */
7631068Sminshall 	MaxNumberColumns,	/* How many columns the 3270 COULD have */
7731068Sminshall 	NumberLines,		/* How many lines the 3270 screen contains */
7831068Sminshall 	NumberColumns,		/* How many columns the 3270 screen contains */
7931068Sminshall 	ScreenSize;
8031068Sminshall 
8131068Sminshall EXTERN int CursorAddress;			/* where cursor is */
8231068Sminshall EXTERN int BufferAddress;			/* where writes are going */
8331068Sminshall 
8431068Sminshall EXTERN int Lowest, Highest;
8531068Sminshall 
8631068Sminshall extern char CIABuffer[];
8731068Sminshall 
8831068Sminshall EXTERN int UnLocked;		/* is the keyboard unlocked */
8931068Sminshall EXTERN int AidByte;
9031068Sminshall 
9131068Sminshall #endif
9231068Sminshall 
9331068Sminshall #if	defined(INCLUDED_STATE)
9431068Sminshall #endif
9531182Sminshall 
9631182Sminshall #if	defined(INCLUDED_OIA)
9731182Sminshall 
9831191Sminshall EXTERN OIA OperatorInformationArea;
9931182Sminshall 
10031516Sminshall EXTERN int
10131516Sminshall     oia_modified,		/* Has the oia been modified */
10231516Sminshall     ps_modified;		/* Has the presentation space been modified */
10331191Sminshall 
10431182Sminshall #endif	/* defined(INCLUDED_OIA) */
105