aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gks/gqtxci.x
blob: e327660b424d81c8ec54d96c1c2537b64da65280 (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
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<gset.h>
include	"gks.h"

# GQTXCI -- Inquire text color index.

procedure gqtxci (ierror, coli)

int	ierror			# Error indicator
int	coli			# Color index - returned value.
int	gstati ()
include	"gks.com"

begin
	if (gk_std == NULL) {
	    # GKS not in proper state; no active workstations
	    ierror = 7
	    coli = -1
	    return
	} else
	    ierror = 0

	iferr {
	    coli = gstati (gp[gk_std], G_TXCOLOR)
	} then {
	    ierror = 1
	    coli = -1
	}
end