post(3FORM)
π post(3FORM) β the library calls girlies call "post_form" and "unpost_form" π
okay bestie, sit down, we're talking about post_form and unpost_form from the forms library. yes, THAT manual, the one in section 3FORM. it's giving "put the form on the screen" and "take the form off the screen" and honestly? iconic. π
β¨ NAME β¨
post_form, unpost_form β write or erase forms from associated subwindows. that's it, that's the whole vibe. one writes, one erases, they're a duo fr fr. π¦
β¨ SYNOPSIS β¨
#include <form.h>
int post_form(FORM *form);
int unpost_form(FORM *form);
no cap, that's the entire thing. two functions, one header, we move. π
β¨ DESCRIPTION β¨
okay so first up: post_form displays a form to its associated subwindow. that's the whole job, she shows up and shows out. β¨
BUT β and this is the part everyone forgets β to trigger the physical display of the subwindow, you gotta use refresh(3NCURSES) or some equivalent curses routine. lowkey the implicit doupdate that gets triggered by a curses input request will also do the trick, so you're not totally stranded. π«Ά
then we have unpost_form, whose whole personality is erasing form from its associated subwindow. she's the cleanup crew. the closer. the "we're done here" text. π
β¨ RETURN VALUE β¨
these routines return one of the following, and bestie, you WILL be checking them:
E_OKβ the routine succeeded. slay. the good ending. πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. she said "what is this" πE_BAD_STATEβ routine was called from an initialization or termination function. wrong place, wrong time, read the room. πE_NOT_POSTEDβ the form has not been posted. you can't unpost what was never posted, babe. π§E_NOT_CONNECTEDβ no items are connected to the form. she's alone. she's unmoored. πE_NO_ROOMβ form is too large for its window. the form said "I need space" and the window said no. πΈE_POSTEDβ the form has already been posted. double posting is not the move. πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). not us, it's the system. π₯
fr fr, check these return values. do not just vibe past them.
β¨ PORTABILITY β¨
these routines emulate the System V forms library. they were NOT supported on Version 7 or BSD versions. so if you're on some ancient BSD situation... nope, not happening, no form for you. π
β¨ AUTHORS β¨
Juergen Pfeifer. and manual pages + adaptation for new curses by Eric S. Raymond. kings, honestly. π
β¨ SEE ALSO β¨
ncurses(3NCURSES)form(3FORM)
and that's the whole page bestie!! this was ncurses 6.6, dated 2024-03-16, and it lives in post(3FORM). go post a form, go unpost a form, go call refresh(3NCURSES). periodt. π
β¨π¦π
π¦ where this page comes from
- ubuntu resolute: ncurses-doc 6.6+20251231-1 Β· MIT/X11
- ubuntu stonking: ncurses-doc 6.6+20260608-2 Β· MIT/X11
- 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