GQSGUS(3NCARG)
π GQSGUS β the "who's on the guest list rn?" of NCAR Graphics π
(that's a 3NCARG manual page, bestie β Inquire set of segment names in use)
okay so real talk, this one is genuinely one of the most useful little routines in the whole GKS friend group. GQSGUS literally retrieves what segment names are currently in use. that's it. that's the whole job. and it ate. π
β¨ SYNOPSIS β¨
CALL GQSGUS(N,ERRIND,OL,SGNA)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/gks.h>
void ginq_set_seg_names(Gint num_elems_appl_list, Gint start_pos, Gint
*err_ind, Gint_list *seg_names, Gint *length_list);
πΈ DESCRIPTION πΈ
bestie, let's go through the whole squad one by one, no skipping:
N(Integer, Input) β the set member you're asking for. like, which one in the list, girl. πERRIND(Integer, Output) β the vibe check result. if the GKS state is WSOP (workstation open), WSAC (workstation active), or SGOP (segment open), thenERRINDcomes back as"0"β slay, we're good. otherwiseERRINDcomes back as"7"and, um, not slay. πOL(Integer, Output) β literally just how many segment names are currently in use. the headcount. the number of girlies at the function. πSGNA(Integer, Output) β the actual name, the main character herself. if the GKS state is WSOP (workstation open), WSAC (workstation active), or SGOP (segment open), and ifOLis larger than zero, thenSGNAis returned as the name in the *N*th element of the list of segment names that are currently in use. otherwise?SGNAis undefined β like, it's not ghosting you on purpose, it just genuinely does not exist. π
π USAGE π
for NCAR GKS, segment names are integers between 0 and 99 inclusive β go peek at the man page for GCRSG if you need the receipts. iykyk.
so, you want the whole list of every segment name currently in use? here's the routine, step by step, no cap:
- first, figure out how many segment names are in use β make an initial call to
GQSGUSwith a first argument of"1". π«Ά - if
ERRINDcomes back as"0", thenOLwill tell you how many segments are currently in use. periodt. - then, to get the actual list of all segment names currently in use, call
GQSGUSin a loop onNfrom1toOL, and retrieve the N values ofSGNAreturned from such calls. boom. the whole guest list. π₯
not me telling you to loop β yes bestie, you literally loop, that's the move, that's the whole vibe.
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. load her. let her in. π
β SEE ALSO β
Online: gevtm, gactm, gclsg, gcrsg, gcsgwk, gqopsg, gdsg, gssgt., ginq_set_seg_names
Hardcopy: "User's Guide for NCAR GKS-0A Graphics"
(go read those too, they're all part of the same friend group, it's giving β¨loreβ¨)
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
okay so legally i have to be the responsible one here: that license agreement is not a vibe suggestion, it's real. respect her. π
and that's the page!! π¦ from the UNIX girlies, March 1993, on the GQSGUS(3NCARG) tip β mwah, go get those segment names, bestie, you're gonna eat π
β¨π
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms