GCLRWK(3NCARG)
β¨ GCLRWK β¨ (aka the "Clear Workstation" era)
okay bestie, sit down, hydrate, and let me tell you about GCLRWK from the NCAR GRAPHICS collection π this is a 3NCARG manual page and it's literally the little routine that goes "clear the screen, girl" so your workstation can start fresh π§Όβ¨
πΈ NAME πΈ
GCLRWK (Clear workstation) β clears a workstation. that's it. that's the whole job. and she does it flawlessly π
π SYNOPSIS π
CALL GCLRWK (WKID, COFL)
two arguments, no drama, we love a low-maintenance queen π
π¦ C-BINDING SYNOPSIS π¦
for my C girlies, she also has a glow-up version:
#include <ncarg/gks.h>
void gclear_ws(Gint ws_id, Gctrl_flag ctrl_flag);
same energy, different syntax, and yes the double space before ctrl_flag is exactly how it's written, don't come for me π
β¨ DESCRIPTION β¨
let's meet the cast π
WKIDβ (Integer, Input) β a number identifying the workstation to be cleared. IMPORTANT:WKIDmust be the same as that used in some previousGOPWKcall. like, she needs to know who she's clearing, bestie. no stranger danger clears π«ΆCOFLβ (Integer, Input) β clear the workstation display surface. the options are:0β check to see if the display surface is empty. If so, do not issue a clear surface command. she's polite, she checks first, she doesn't do unnecessary work π1β issue a clear surface command whether the surface has been written to or not. she's gonna clear it regardless. no questions asked. main character energy π₯
π USAGE π
okay this is the part where it gets β¨workstation-type-specificβ¨ so pay attention, iykyk:
- for workstations of type
"1"(CGM),GCLRWKis interpreted as a picture termination in CGM generation. so ifCOFL = 0and no output primitives have been written in the current picture, then a call toGCLRWKis a "do nothing"; otherwise, it generates anEND PICTUREelement (as well as other picture initializing elements). and ifCOFL = 1, then a call toGCLRWKgenerates anEND PICTURE. periodt π« - for workstations of types
"7"or"8"(see the man page forGOPWKfor a description of workstation types β yes bestie, go read it, it's giving essential lore π), clear workstations erases all primitives that appear on the screen. every single one. wiped. gone. iconic π§½ - for all other workstation types, clear workstation simply updates the workstation. chill. lowkey. no notes πΈ
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole key to the kingdom, go get it ποΈβ¨
π SEE ALSO π
Online besties: gopwk, gacwk, gdawk, gclwk, gclear_ws
Hardcopy besties: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
go read those too, they're part of the family π«Ά
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
fr fr, that license agreement is not optional. respect it like you respect a COFL = 1 clear command π€
and that's the whole page, bestie π this was GCLRWK(3NCARG) from the NCAR Graphics collection, straight outta UNIX, dated March 1993 β vintage but she ate and left no crumbs π
β¨ bye love u, go clear a workstation π¦
π¦ 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