diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/images/tv/display/iiswcr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/images/tv/display/iiswcr.x')
-rw-r--r-- | pkg/images/tv/display/iiswcr.x | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/images/tv/display/iiswcr.x b/pkg/images/tv/display/iiswcr.x new file mode 100644 index 00000000..3970f230 --- /dev/null +++ b/pkg/images/tv/display/iiswcr.x @@ -0,0 +1,20 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> +include "zdisplay.h" +include "iis.h" + +# IISWCR -- Write cursor to display. Note that the position is 1 indexed. + +procedure iiswcr (status, xcur, ycur) + +int status, xcur, ycur +short cursor[LEN_CURSOR] +include "iis.com" + +begin + call iishdr (IWRITE+VRETRACE, 2, COMMAND+CURSOR, 1+ADVXONTC, 0,0,0) + cursor[2] = mod (xcur / MCXSCALE - 32, iis_xdim) + cursor[3] = mod (ycur / MCYSCALE - 32, iis_ydim) + call iisio (cursor[2], 2 * SZB_CHAR, status) +end |