aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gki/gkiclear.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gio/gki/gkiclear.x')
-rw-r--r--sys/gio/gki/gkiclear.x28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/gio/gki/gkiclear.x b/sys/gio/gki/gkiclear.x
new file mode 100644
index 00000000..ac1e5961
--- /dev/null
+++ b/sys/gio/gki/gkiclear.x
@@ -0,0 +1,28 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <config.h>
+include <gki.h>
+
+# GKI_CLEAR -- Clear the workstation screen.
+#
+# BOI GKI_CLEAR 0
+#
+# L(i) set to the constant 3 (no data fields)
+
+procedure gki_clear (fd)
+
+int fd # output file
+
+int epa
+short gki[GKI_CLEAR_LEN]
+data gki[1] /BOI/, gki[2] /GKI_CLEAR/, gki[3] /LEN_GKIHDR/
+include "gki.com"
+
+begin
+ if (IS_INLINE(fd)) {
+ epa = gk_dd[GKI_CLEAR]
+ if (epa != 0)
+ call zcall1 (epa, 0)
+ } else
+ call write (gk_fd[fd], gki, GKI_CLEAR_LEN * SZ_SHORT)
+end