Make close/open sequences work in a more rational manner.
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Thu, 2 Apr 1987 07:10:08 +0000 (23:10 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Thu, 2 Apr 1987 07:10:08 +0000 (23:10 -0800)
SCCS-vsn: usr.bin/tn3270/sys_curses/termout.c 1.6
SCCS-vsn: usr.bin/tn3270/general/makefile 1.3
SCCS-vsn: usr.bin/tn3270/general/globals.c 1.2

usr/src/usr.bin/tn3270/general/globals.c
usr/src/usr.bin/tn3270/general/makefile
usr/src/usr.bin/tn3270/sys_curses/termout.c

index b8b6411..e92763e 100644 (file)
@@ -38,3 +38,32 @@ static       char    sccsid[] = "@(#)globals.c       3.1  10/29/86";
 #define DEFINING_INSTANCES
 
 #include       "globals.h"
 #define DEFINING_INSTANCES
 
 #include       "globals.h"
+
+#include       "general.h"
+
+/*
+ * init_system()
+ *
+ * Initialize the global values in case of a restart.
+ */
+
+void
+init_system()
+{
+    OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0;
+    OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0;
+    OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0;
+
+    ClearArray(Host);
+#if    defined(SLOWSCREEN)
+    ClearArray(Terminal);
+#endif /* defined(SLOWSCREEN) */
+    ClearArray(FieldForward);
+    ClearArray(FieldReverse);
+    CursorAddress = BufferAddress = 0;
+
+    Lowest = Highest = 0;
+
+    UnLocked = AidByte = 0;
+
+}
index a8c623f..10ed9b0 100644 (file)
@@ -3,7 +3,7 @@ PRINT   = print
 
 DEFINES = 
 
 
 DEFINES = 
 
-INCLUDES = -I.
+INCLUDES = -I. -I..
 
 OPTIMIZE = -O
 OPTIMIZE = -g
 
 OPTIMIZE = -O
 OPTIMIZE = -g
index 13d42f9..3350961 100644 (file)
@@ -86,6 +86,23 @@ extern int   tin, tout;              /* file descriptors */
 #include "disp_asc.out"
 
 \f
 #include "disp_asc.out"
 
 \f
+
+/*
+ * init_screen()
+ *
+ * Initialize variables used by screen.
+ */
+
+void
+init_screen()
+{
+    bellwinup = 0;
+#if    defined(SLOWSCREEN)
+    inHighlightMode = 0;
+#endif /* defined(SLOWSCREEN) */
+}
+
+
 /* OurExitString - designed to keep us from going through infinite recursion */
 
 static void
 /* OurExitString - designed to keep us from going through infinite recursion */
 
 static void