130673Sminshall /*
230673Sminshall  *	Copyright (c) 1984, 1985, 1986 by the Regents of the
330673Sminshall  *	University of California and by Gregory Glenn Minshall.
430673Sminshall  *
530673Sminshall  *	Permission to use, copy, modify, and distribute these
630673Sminshall  *	programs and their documentation for any purpose and
730673Sminshall  *	without fee is hereby granted, provided that this
830673Sminshall  *	copyright and permission appear on all copies and
930673Sminshall  *	supporting documentation, the name of the Regents of
1030673Sminshall  *	the University of California not be used in advertising
1130673Sminshall  *	or publicity pertaining to distribution of the programs
1230673Sminshall  *	without specific prior permission, and notice be given in
1330673Sminshall  *	supporting documentation that copying and distribution is
1430673Sminshall  *	by permission of the Regents of the University of California
1530673Sminshall  *	and by Gregory Glenn Minshall.  Neither the Regents of the
1630673Sminshall  *	University of California nor Gregory Glenn Minshall make
1730673Sminshall  *	representations about the suitability of this software
1830673Sminshall  *	for any purpose.  It is provided "as is" without
1930673Sminshall  *	express or implied warranty.
2030673Sminshall  */
2130673Sminshall 
2230673Sminshall #ifndef	lint
2330673Sminshall static	char	sccsid[] = "@(#)globals.c	3.1  10/29/86";
2430673Sminshall #endif	/* ndef lint */
2530673Sminshall 
2630673Sminshall /*
2730673Sminshall  *	Do the defining instances for the globals of tn3270.
2830673Sminshall  */
2930673Sminshall 
3030673Sminshall #include	"../ctlr/hostctlr.h"
3130673Sminshall #include	"../ascii/ascebc.h"
3230673Sminshall #include	"../ctlr/dctype.h"
33*31190Sminshall #include	"../ctlr/oia.h"
3430673Sminshall #include	"../ctlr/options.h"
3530673Sminshall #include	"../ctlr/screen.h"
3631178Sminshall #include	"../ascii/state.h"
3730673Sminshall 
3830673Sminshall 
3930673Sminshall #define DEFINING_INSTANCES
4030673Sminshall 
4130673Sminshall #include	"globals.h"
4230731Sminshall 
4331178Sminshall #include	"../general/general.h"
4430731Sminshall 
4531070Sminshall #if	defined(SLOWSCREEN)
4631070Sminshall 
4731070Sminshall ScreenImage Terminal[MAXSCREENSIZE];
4831070Sminshall 
4931070Sminshall #endif	/* defined(SLOWSCREEN) */
5031070Sminshall 
5130731Sminshall /*
5230731Sminshall  * init_system()
5330731Sminshall  *
5430731Sminshall  * Initialize the global values in case of a restart.
5530731Sminshall  */
5630731Sminshall 
5730731Sminshall void
5830731Sminshall init_system()
5930731Sminshall {
6030731Sminshall     OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0;
6130731Sminshall     OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0;
6230731Sminshall     OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0;
6330731Sminshall 
6430731Sminshall     ClearArray(Host);
6530731Sminshall     CursorAddress = BufferAddress = 0;
6630731Sminshall 
6730731Sminshall     Lowest = Highest = 0;
6830731Sminshall 
6930731Sminshall     UnLocked = AidByte = 0;
7030731Sminshall 
7130731Sminshall }
72