aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/cursor/gtrpage.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/cursor/gtrpage.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/cursor/gtrpage.x')
-rw-r--r--sys/gio/cursor/gtrpage.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/gio/cursor/gtrpage.x b/sys/gio/cursor/gtrpage.x
new file mode 100644
index 00000000..2caa53cb
--- /dev/null
+++ b/sys/gio/cursor/gtrpage.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <gset.h>
+include <gio.h>
+include "gtr.h"
+
+# GTR_PAGE -- Prepare the workstation for output of one or more pages of text.
+# Whether or not the terminal is paged is optional. On terminals where the
+# text and graphics are overlaid, it is possible to run the text by beneath
+# the plot without affecting the plot.
+
+procedure gtr_page (fd, stream)
+
+int fd # output file
+int stream # graphics stream
+
+pointer tr
+pointer gtr_init()
+errchk gtr_init
+
+begin
+ tr = gtr_init (stream)
+
+ if (TR_PAGE(tr) == YES)
+ call gki_deactivatews (stream, AW_CLEAR)
+ else
+ call gki_deactivatews (stream, 0)
+
+ TR_WAITPAGE(tr) = YES
+end