GQOPSG(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ GQOPSG ✨ (aka the NCAR Graphics girlies' guide to Inquire name of open segment)

okay bestie, pull up a chair, we're in the 3NCARG section of the manual and this one is short and sweet but like, actually so useful πŸ’–

GQOPSG returns the name of the currently open segment. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

CALL GQOPSG(ERRIND,SGNA)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/gks.h>

void ginq_name_open_seg(Gint *err_ind, Gint *name_open_seg);

πŸ’… DESCRIPTION πŸ’…

  • ERRIND (Integer, Output) β€” so here's the tea: if the GKS state is SGOP (segment open), then ERRIND comes back as "0" ✨. otherwise? ERRIND is returned as "4". no in-between, it's giving binary, it's giving yes-or-no, periodt.
  • SGNA (Integer, Output) β€” if the GKS state is SGOP (segment open), then SGNA is returned as the number of the currently open segment, iconic, we love a lil name reveal πŸ‘‘. otherwise SGNA is undefined. like, not zero, not garbage-with-a-vibe, just undefined β€” do not look at it, do not touch it, do not build your whole plot on it. 🫢
🚨 real talk: if you're not in SGOP, SGNA is undefined. check ERRIND first, always. no cap.

πŸŽ€ ACCESS πŸŽ€

to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole entry requirement, bestie, go wild 🌈


🌟 SEE ALSO 🌟

Online: gevtm, gactm, gclsg, gcrsg, gcsgwk, gdsg, gqsgus, gssgt., ginq_name_open_seg

Hardcopy: "User's Guide for NCAR GKS-0A Graphics"


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


so yeah, that's GQOPSG in the 3NCARG manual, straight outta the UNIX pages, dated March 1993 πŸ’œ she's vintage, she's reliable, she ate and left no crumbs. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from