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 4231048Sminshall #include "../general.h" 4330731Sminshall 44*31070Sminshall #if defined(SLOWSCREEN) 45*31070Sminshall 46*31070Sminshall ScreenImage Terminal[MAXSCREENSIZE]; 47*31070Sminshall 48*31070Sminshall #endif /* defined(SLOWSCREEN) */ 49*31070Sminshall 5030731Sminshall /* 5130731Sminshall * init_system() 5230731Sminshall * 5330731Sminshall * Initialize the global values in case of a restart. 5430731Sminshall */ 5530731Sminshall 5630731Sminshall void 5730731Sminshall init_system() 5830731Sminshall { 5930731Sminshall OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0; 6030731Sminshall OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0; 6130731Sminshall OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0; 6230731Sminshall 6330731Sminshall ClearArray(Host); 6430731Sminshall CursorAddress = BufferAddress = 0; 6530731Sminshall 6630731Sminshall Lowest = Highest = 0; 6730731Sminshall 6830731Sminshall UnLocked = AidByte = 0; 6930731Sminshall 7030731Sminshall } 71