aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/gtools/gtcur.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/xtools/gtools/gtcur.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/xtools/gtools/gtcur.x')
-rw-r--r--pkg/xtools/gtools/gtcur.x21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkg/xtools/gtools/gtcur.x b/pkg/xtools/gtools/gtcur.x
new file mode 100644
index 00000000..7103bf9c
--- /dev/null
+++ b/pkg/xtools/gtools/gtcur.x
@@ -0,0 +1,21 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# GT_GCUR -- Interface to clgcur to confirm EOF, map key 'q' to EOF.
+
+int procedure gt_gcur (cur, wx, wy, wcs, key, cmd, sz_cmd)
+
+char cur[ARB] # Cursor parameter
+real wx, wy # Cursor position
+int wcs, key # WCS and cursor key
+char cmd[sz_cmd] # Command string
+int sz_cmd # Size of command string
+
+int curval, clgcur()
+
+begin
+ curval = clgcur (cur, wx, wy, wcs, key, cmd, sz_cmd)
+ if (key == 'q')
+ curval = EOF
+
+ return (curval)
+end