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" 3330673Sminshall #include "../ctlr/options.h" 3430673Sminshall #include "../ctlr/screen.h" 3530673Sminshall #include "../keyboard/state.h" 3630673Sminshall 3730673Sminshall 3830673Sminshall #define DEFINING_INSTANCES 3930673Sminshall 4030673Sminshall #include "globals.h" 41*30731Sminshall 42*30731Sminshall #include "general.h" 43*30731Sminshall 44*30731Sminshall /* 45*30731Sminshall * init_system() 46*30731Sminshall * 47*30731Sminshall * Initialize the global values in case of a restart. 48*30731Sminshall */ 49*30731Sminshall 50*30731Sminshall void 51*30731Sminshall init_system() 52*30731Sminshall { 53*30731Sminshall OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0; 54*30731Sminshall OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0; 55*30731Sminshall OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0; 56*30731Sminshall 57*30731Sminshall ClearArray(Host); 58*30731Sminshall #if defined(SLOWSCREEN) 59*30731Sminshall ClearArray(Terminal); 60*30731Sminshall #endif /* defined(SLOWSCREEN) */ 61*30731Sminshall ClearArray(FieldForward); 62*30731Sminshall ClearArray(FieldReverse); 63*30731Sminshall CursorAddress = BufferAddress = 0; 64*30731Sminshall 65*30731Sminshall Lowest = Highest = 0; 66*30731Sminshall 67*30731Sminshall UnLocked = AidByte = 0; 68*30731Sminshall 69*30731Sminshall } 70