GCLEAR_WS(3NCARG)
β¨ GCLEAR_WS β¨ (from the NCAR GRAPHICS manual, 3NCARG bestie π)
okay so picture this: you've got a workstation, right? and it's got stuff all over it. gclear_ws is the girl who shows up with a lint roller and just... wipes it clean. that's the whole job. that's the gig. π§Ήβ¨
πΈ NAME πΈ
gclear_ws β clears a workstation. periodt.
π SYNOPSIS π
#include <ncarg/gks.h>
void gclear_ws(Gint ws_id, Gctrl_flag ctrl_flag);
π DESCRIPTION π
ws_id(Input) β a number that IDs the workstation you wanna clear. no cap, this has to be the exact samews_idyou used in some previousgopen_wscall. like, it has to match. don't be out here making up numbers, she will not recognize you. πctrl_flag(Input) β tells her how to clear the workstation display surface. your options are:GFLAG_CONDβ she checks first. is the display surface empty? if it is, she does not issue a clear surface command. lowkey respectful of her time. πGFLAG_ALWAYSβ she issues a clear surface command no matter what. surface been written to? don't care. surface never been touched? also don't care. she's clearing. main character energy, no notes. π
π₯ USAGE π₯
so this is where it gets type-dependent, bestie, buckle up:
- for workstations of type "1" (CGM),
gclear_wsgets interpreted as a picture termination in CGM generation. and here's the tea: ifctrl_flag = GFLAG_CONDand no output primitives have been written in the current picture, then callinggclear_wsis a literal "do nothing" β she just vibes. otherwise, it generates an END PICTURE element (plus other picture initializing elements, she's thorough π). and ifctrl_flag = GFLAG_ALWAYS, then callinggclear_wsgenerates an END PICTURE, full stop. - for workstations of types "7" or "8" β and yes, the man page for
gopen_wshas the whole description of workstation types if you need it, iykyk β clear workstations erases all primitives that appear on the screen. like, gone gone. π«Ά - for all other workstation types, clear workstation simply updates the workstation. that's it. that's the whole thing. not dramatic, just doing her little job. πΈ
π ACCESS π
to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. both of them. don't skip one, she'll know. π
π¦ SEE ALSO π¦
Online: gopen_ws(3NCARG), gactivate_ws(3NCARG), gdeactivate_ws(3NCARG), gclose_ws(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
okay that's the whole page, you ate it, you understood it, you're basically a GKS girlie now πβ¨ mwah! this little legend comes from the UNIX manual, dated March 1993, page GCLEAR_WS(3NCARG), under the NCAR GRAPHICS umbrella β and yes, she's still iconic in 1993 and beyond ππ¦
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms