WCTL(3)
๐ซถ WCTL(3): window management, but make it group-chat ๐ซถ
okay so this is the WCTL(3) page from the Library Functions Manual, and itโs literally about three little routines that talk to your window manager for you. Theyโre giving โmiddleman bestieโ energy, no cap. ๐
โจ NAME โจ
drawresizewindow, drawsetlabel, drawtopwindow โ window management. periodt. ๐
๐ ๏ธ SYNOPSIS ๐ ๏ธ
#include <draw.h>
void drawresizewindow(Rectangle r)
int drawsetlabel(Display *d, char *name)
void drawtopwindow(void)
๐ DESCRIPTION ๐
These routines interact with a window manager to set the properties of the window running the current program. They substitute for interacting directly with Plan 9 rioโs /dev/wctl. iykyk โ theyโre the substitute bestie for that direct /dev/wctl interaction. ๐ฆ
drawresizewindowโ requests that the programโs window be resized to have the width and height of the rectangler. Only the width and height are important; the offset is ignored, so donโt stress the offset, bestie. ๐ธdrawsetlabelโ requests that the programโs window title be set toname. Itโs giving rename-your-window realness. ๐drawtopwindowโ requests that the programโs window be moved above all other windows and given the input focus. Main character energy: front and center, focused. ๐
๐ SOURCE ๐
/src/libdraw/wsys.c โ thatโs where this lives, iykyk. โญ
later, bestie โ signing off from the WCTL(3) page in the Library Functions Manual, undated in this page so no timestamp to spill, with source at /src/libdraw/wsys.c. bye and slay ๐ซถ๐๐
๐ฆ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 ยท LPL-1.02
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms