Install sccs headers and copyright notices.
[unix-history] / usr / src / usr.bin / tn3270 / ctlr / oia.c
index e6dc3c8..1976331 100644 (file)
 /*
 /*
- * Routines to maintain the Operator Information Area.
+ *     Copyright (c) 1984-1987 by the Regents of the
+ *     University of California and by Gregory Glenn Minshall.
+ *
+ *     Permission to use, copy, modify, and distribute these
+ *     programs and their documentation for any purpose and
+ *     without fee is hereby granted, provided that this
+ *     copyright and permission appear on all copies and
+ *     supporting documentation, the name of the Regents of
+ *     the University of California not be used in advertising
+ *     or publicity pertaining to distribution of the programs
+ *     without specific prior permission, and notice be given in
+ *     supporting documentation that copying and distribution is
+ *     by permission of the Regents of the University of California
+ *     and by Gregory Glenn Minshall.  Neither the Regents of the
+ *     University of California nor Gregory Glenn Minshall make
+ *     representations about the suitability of this software
+ *     for any purpose.  It is provided "as is" without
+ *     express or implied warranty.
  */
 
  */
 
-#include "oia.h"
-#include "../general/globals.h"
-
-static int
-    Insert,
-    SystemLocked,
-    PWait,
-    TWait,
-    OnlineA,
-    Ready3274,
-    MyJob;
-
-#define        X_AREA_SYSTEM   0xc6, "\xb2\xb8"
-#define        X_AREA_CLOCK    0xc6, "\xf2\xf3"
-#define        X_AREA_NULL     0xc6, ""
-
-static void
-OiaXArea(x, xwhy)
-int    x;
-char   *xwhy;
-{
-    register int i;
-
-    OperatorInformationArea.x = x;
-    for (i = 0; i < sizeof OperatorInformationArea.xwhy; i++) {
-       if (*xwhy) {
-           OperatorInformationArea.xwhy[i] = *xwhy++;
-       } else {
-           OperatorInformationArea.xwhy[i] = 0;
-       }
-    }
-}
-
-
-OiaInsert(onoff)
-int    onoff;
-{
-    Insert = onoff;
-
-    if (onoff) {
-       OperatorInformationArea.insert = OIA_INSERT_ON;
-    } else {
-       OperatorInformationArea.insert = 0;
-    }
-    ScreenOIA();
-}
-
-OiaSystemLocked(onoff)
-int    onoff;
-{
-    SystemLocked = onoff;
-
-    if ((PWait == 0) && (TWait == 0)) {
-       OiaXArea(X_AREA_SYSTEM);
-    }
-    ScreenOIA();
-}
-
-OiaPWait(onoff)
-int    onoff;
-{
-    PWait = onoff;
+#ifndef lint
+static char sccsid[] = "@(#)oia.c      1.5 (Berkeley) %G%";
+#endif /* not lint */
 
 
-    if (onoff) {
-       OiaXArea(X_AREA_CLOCK);
-    } else {
-       if (SystemLocked) {
-           OiaXArea(X_AREA_SYSTEM);
-       } else {
-           OiaXArea(X_AREA_NULL);
-       }
-    }
-    ScreenOIA();
-}
-
-OiaTWait(onoff)
-int    onoff;
-{
-    TWait = onoff;
-
-    OiaPWait(onoff);
-}
-
-OiaOnlineA(onoff)
-int    onoff;
-{
-    OnlineA = onoff;
+/*
+ * Routines to maintain the Operator Information Area.
+ */
 
 
-    if (onoff) {
-       OiaMyJob(1);
-       OperatorInformationArea.online = OIA_ONLINE_A;
-    } else {
-       OperatorInformationArea.online = 0;
-    }
-    ScreenOIA();
-}
+#include "../general/general.h"
 
 
-OiaReady3274(onoff)
-int    onoff;
-{
-    Ready3274 = onoff;
+#include "oia.h"
+#include "../general/globals.h"
 
 
-    if (onoff) {
-       OperatorInformationArea.ready = OIA_READY_3274;
-    } else {
-       OperatorInformationArea.ready = 0;
-    }
-    ScreenOIA();
-}
 
 
-OiaMyJob(onoff)
-int    onoff;
+init_oia()
 {
 {
-    MyJob = onoff;
-
-    if (onoff) {
-       OperatorInformationArea.ownership = OIA_OWNERSHIP_MYJOB;
-    } else {
-       OperatorInformationArea.ownership = 0;
-    }
-    ScreenOIA();
+    ClearElement(OperatorInformationArea);
 }
 }