blob: a84ad95d1b3c7696ad70359ba96ee16a4d27f6e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <config.h>
include <gki.h>
# GKI_REACTIVATEWS -- Reactivate the workstation (enable graphics).
#
# BOI GKI_REACTIVATEWS L F
#
# L(i) 4
# F flags (0,AW_PAUSE,AW_CLEAR)
procedure gki_reactivatews (fd, flags)
int fd # output file
int flags # action modifier flags
int epa, nchars
short gki[GKI_REACTIVATEWS_LEN]
data gki[1] /BOI/, gki[2] /GKI_REACTIVATEWS/, gki[3] /GKI_REACTIVATEWS_LEN/
include "gki.com"
begin
if (IS_INLINE(fd)) {
epa = gk_dd[GKI_REACTIVATEWS]
if (epa != 0)
call zcall1 (epa, flags)
} else {
# Send a copy to the pseudofile i/o controller.
gki[GKI_REACTIVATEWS_F] = flags
nchars = GKI_REACTIVATEWS_LEN * SZ_SHORT
if (IS_FILE(fd) && (fd >= STDGRAPH && fd <= STDPLOT)) {
call write (PSIOCTRL, fd, SZ_INT32)
call write (PSIOCTRL, gki, nchars)
call flush (PSIOCTRL)
}
# Now send a copy to the graphics kernel.
call write (gk_fd[fd], gki, nchars)
}
end
|