GCLRWK(3NCARG)
π GCLRWK β bestie, let's clear a workstation π
okay so this is GCLRWK, from the NCAR GRAPHICS corner of the 3NCARG manual, and she is exactly what she sounds like: she clears a GKS workstation. that's the whole job. she's not complicated, she's just important. π§β¨
β¨ NAME β¨
GCLRWK β clears a GKS workstation π§Όπ
π¦ SYNOPSIS π¦
CALL GCLRWK (WKID, COFL)
πΈ C-BINDING SYNOPSIS πΈ
#include <ncarg/gks.h>
void gclear_ws(Gint ws_id, Gctrl_flag ctrl_flag);
π DESCRIPTION π
so there's two things you gotta hand her, and she'll handle the rest:
WKIDβ (Integer, Input) β this is the number that ID's the workstation you wanna clear. β οΈ important:WKIDmust be the same as the one you used in some previousGOPWKcall. like, she needs to recognize the girl. no random numbers, bestie, she will not know who you are. πCOFLβ (Integer, Input) β this is the "clear the workstation display surface" flag, and you've got two options, no in-between:0β check first whether the display surface is empty. if it is empty, don't issue a clear surface command at all. respectful. efficient. iconic. β¨1β issue a clear surface command, periodt. whether the surface has been written to or not. no questions asked. π
π₯ USAGE π₯
okay this is where it gets type-dependent, so pay attention bestie, because the vibe completely changes depending on what kind of workstation you're on π
for workstations of type "1" (CGM): GCLRWK gets interpreted as a picture termination in CGM generation. so:
- if
COFL = 0and no output primitives have been written in the current picture, then a call toGCLRWKis literally a "do nothing". like, she shows up and does nothing. valid. - otherwise, it generates an
END PICTUREelement (plus other picture initializing elements, so, a whole little ensemble π). - if
COFL = 1, then a call toGCLRWKgenerates anEND PICTURE. simple as that.
for workstations of types "7" or "8": (peep the man page for GOPWK if you want the full description of workstation types, iykyk) β clear workstations erases all primitives that appear on the screen. gone. deleted. not me erasing your whole drawing π
for all other workstation types: clear workstation simply updates the workstation. that's it. lowkey chill. π
π ACCESS π
to use the GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole access situation, bestie. π«Ά
π SEE ALSO π
Online: gopwk, gacwk, gdawk, gclwk, gclear_ws
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.
and that's the whole page, bestie π this one came out of the UNIX manual, dated March 1993, filed under GCLRWK(3NCARG) β go clear something, slay, and remember: WKID has to match your GOPWK. no cap. π¦β¨
π¦ 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