GQOPSG(3NCARG)

✨ GQOPSG (Inquire name of open segment) ✨

okay bestie, we're deep in the NCAR GRAPHICS manual, page GQOPSG(3NCARG), and this one is so useful it's giving main character energy 🫢

This little icon literally just tells you the name of the currently open segment. That's it. That's the whole job. And honestly? She ate. πŸ’…


🌸 NAME 🌸

GQOPSG β€” aka Inquire name of open segment β€” hands you back the name of whatever segment is open right now. πŸ”₯


πŸŽ€ 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) β€” if the GKS state is SGOP (that's "segment open", iykyk), then ERRIND comes back as 0. But if it's not? Then ERRIND comes back as 4. No in-between, no drama, just a lil vibe check on your state. 😌
  • SGNA β€” (Integer, Output) β€” if the GKS state is SGOP (segment open), then SGNA is returned as the number of the currently open segment. Otherwise? SGNA is undefined β€” so like, don't even look at it, bestie, it's giving void. πŸ’€

🌈 ACCESS 🌈

To use GKS routines, load the NCAR GKS-0A library ncarg_gks. That's the one. No cap. ✨


⭐ 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.


and that's the whole page, bestie β€” slay πŸ’œπŸŒΈπŸ¦‹

this one's from the UNIX manual, dated March 1993, filed under GQOPSG(3NCARG) πŸŽ€ periodt.