form_post(3X)
π form_post β bestie edition π
okay so this is form_post(3X), a library call from the ncurses family, and it's literally just two little functions that put a form on screen or take it back off. that's it. that's the whole vibe. two functions. we love a minimal era. β¨
πΈ NAME πΈ
post_form, unpost_form β write or erase forms from associated subwindows, no cap
π¦ SYNOPSIS π¦
#include <form.h>
int post_form(FORM *form);
int unpost_form(FORM *form);
π DESCRIPTION π
so post_form displays a form to its associated subwindow. that's the whole thing, bestie. it's giving "make it visible."
but here's the tea β β to actually trigger the physical display of that subwindow, you gotta use refresh(3X) or some equivalent curses routine. and ngl, the implicit doupdate that gets triggered by a curses input request will do the job too, so you have options. main character energy, honestly.
then unpost_form erases form from its associated subwindow. it's the breakup. it's the "we're done here." iconic. π
β¨ RETURN VALUE β¨
these routines return one of the following, and yes you have to read all of them, sorry not sorry:
E_OKβ the routine succeeded. slay! πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. she's wrong, your honor.E_BAD_STATEβ routine was called from an initialization or termination function. wrong place, wrong time, bestie. πE_NOT_POSTEDβ the form has not been posted. it's not even here yet?? πE_NOT_CONNECTEDβ no items are connected to the form. empty. barren. no thoughts head empty. π«ΆE_NO_ROOMβ form is too large for its window. she does not fit. it's giving "we're gonna need a bigger boat."E_POSTEDβ the form has already been posted. she's already up there, girl. you can't double-post. πE_SYSTEM_ERRORβ system error occurred, and you should go checkerrno(3)for the receipts.
π PORTABILITY π
these routines emulate the System V forms library. lowkey they were not supported on Version 7 or BSD versions. so if you're on those, no form posting for you. periodt.
π AUTHORS π
Juergen Pfeifer. manual pages and adaptation for new curses by Eric S. Raymond. legends, fr fr. π«Ά
π SEE ALSO π
curses(3X)form(3X)
and that's the whole page, bestie π
this came from ncurses 6.6, dated 2024-03-16 β go forth and post those forms, iykyk β¨π¦πΈ
π¦ where this page comes from
- alpine 3.24: ncurses-doc 6.6_p20260516-r0 Β· X11
- arch rolling: ncurses 6.6-2 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2015,2017 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms