Get rid of redundant global variable (yeah!).
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Fri, 12 Jun 1987 23:46:47 +0000 (15:46 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Fri, 12 Jun 1987 23:46:47 +0000 (15:46 -0800)
SCCS-vsn: usr.bin/tn3270/sys_curses/termout.c 1.14

usr/src/usr.bin/tn3270/sys_curses/termout.c

index d711bb0..e93748f 100644 (file)
@@ -677,7 +677,6 @@ InitTerminal()
        screenInitd = 1;
        screenStopped = 0;              /* Not stopped */
     }
        screenInitd = 1;
        screenStopped = 0;              /* Not stopped */
     }
-    Initialized = 1;
 }
 
 
 }
 
 
@@ -815,7 +814,7 @@ int
 DoTerminalOutput()
 {
        /* called just before a select to conserve IO to terminal */
 DoTerminalOutput()
 {
        /* called just before a select to conserve IO to terminal */
-    if (!Initialized) {
+    if (!(screenInitd||screenStopped)) {
        return 1;               /* No output if not initialized */
     }
     if ((Lowest <= Highest) || needToRing ||
        return 1;               /* No output if not initialized */
     }
     if ((Lowest <= Highest) || needToRing ||