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" 4130731Sminshall 42*31048Sminshall #include "../general.h" 4330731Sminshall 4430731Sminshall /* 4530731Sminshall * init_system() 4630731Sminshall * 4730731Sminshall * Initialize the global values in case of a restart. 4830731Sminshall */ 4930731Sminshall 5030731Sminshall void 5130731Sminshall init_system() 5230731Sminshall { 5330731Sminshall OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0; 5430731Sminshall OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0; 5530731Sminshall OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0; 5630731Sminshall 5730731Sminshall ClearArray(Host); 5830731Sminshall #if defined(SLOWSCREEN) 5930731Sminshall ClearArray(Terminal); 6030731Sminshall #endif /* defined(SLOWSCREEN) */ 6130731Sminshall ClearArray(FieldForward); 6230731Sminshall ClearArray(FieldReverse); 6330731Sminshall CursorAddress = BufferAddress = 0; 6430731Sminshall 6530731Sminshall Lowest = Highest = 0; 6630731Sminshall 6730731Sminshall UnLocked = AidByte = 0; 6830731Sminshall 6930731Sminshall } 70