GQOPS(3NCARG)

✨ GQOPS β€” bestie, what's your GKS vibe rn?? ✨

okay so this page lives in the NCAR GRAPHICS manual (that's the manual name, she's fancy like that πŸ’…), and the whole point of GQOPS is: it tells you the operating state of GKS. Like a vibe check but for graphics. Inquire operating state value, that's her full government name. πŸŽ€


🌸 NAME 🌸

GQOPS β€” Inquire operating state value β€” returns the operating state of GKS. no cap, that's literally it. πŸ¦‹


🌟 SYNOPSIS 🌟

CALL GQOPS (OPSTA)

πŸ’œ C-BINDING SYNOPSIS πŸ’œ

for the C girlies 🫢

#include <ncarg/gks.h>

void ginq_op_st(Gop_st *op_st);

✨ DESCRIPTION ✨

okay bestie, here's the tea β˜• β€” there's exactly one argument and she's an output:

  • OPSTA β€” (Integer, Output) β€” she hands you back the GKS operating state, and the state is one of these five icons:
    • 0 β€” GKS is closed πŸšͺ (nobody's home, the lights are off)
    • 1 β€” GKS is open πŸͺŸ (we're in business)
    • 2 β€” Additionally, a workstation is open πŸ–₯️✨
    • 3 β€” Additionally, a workstation is active πŸ”₯ (main character energy fr)
    • 4 β€” Additionally, a segment is open πŸŽ€
ngl the "Additionally" is doing a lot of work here β€” each number means everything from the level below it too, so 4 is like the whole stack: GKS open, workstation open, workstation active, and a segment open. The way that it just keeps stacking?? obsessed. πŸ‘‘

πŸšͺ ACCESS πŸšͺ

to actually use these GKS routines, you gotta load the NCAR GKS-0A library called ncarg_gks. that's the whole access situation, periodt. πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

Online: gopks, gopwk, gacwk, gdawk, gclwk, gclks, opngks, clsgks, ginq_op_st β€” the whole friend group, go say hi 🫢

Hardcopy: "User's Guide for NCAR GKS-0A Graphics" β€” yes she's on paper, she's vintage, she's iconic πŸ“–βœ¨


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

yes bestie, there's a license agreement. read it. respect it. 🫑

and that's the page!! πŸ’– this one came out in March 1993, on UNIX, and it's filed under GQOPS(3NCARG) in the NCAR GRAPHICS manual β€” so if you ever forget what state your GKS is in, she will always tell you. slay. 🌈πŸ’