diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/gki/gkiscur.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gki/gkiscur.x')
-rw-r--r-- | sys/gio/gki/gkiscur.x | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/gio/gki/gkiscur.x b/sys/gio/gki/gkiscur.x new file mode 100644 index 00000000..f3ca7c53 --- /dev/null +++ b/sys/gio/gki/gkiscur.x @@ -0,0 +1,37 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <config.h> +include <gki.h> + +# GKI_SETCURSOR -- Set the position of a device cursor. +# +# BOI GKI_SETCURSOR L CN POS +# +# L(i) 6 +# CN(i) cursor number +# POS(p) new cursor position + +procedure gki_setcursor (fd, x, y, cursor) + +int fd # output file +int x, y # new cursor position +int cursor # cursor to be set + +int epa +short gki[GKI_SETCURSOR_LEN] +data gki[1] /BOI/, gki[2] /GKI_SETCURSOR/, gki[3] /GKI_SETCURSOR_LEN/ +include "gki.com" + +begin + if (IS_INLINE(fd)) { + epa = gk_dd[GKI_SETCURSOR] + if (epa != 0) + call zcall3 (epa, x, y, cursor) + } else { + gki[GKI_SETCURSOR_CN] = cursor + gki[GKI_SETCURSOR_POS] = x + gki[GKI_SETCURSOR_POS+1] = y + + call write (gk_fd[fd], gki, GKI_SETCURSOR_LEN * SZ_SHORT) + } +end |