form_post(3X)
π form_post(3X) β ok so we're posting forms now
hey bestie π«Ά welcome to the form_post(3X) page, straight out of the Library calls section of your friendly neighborhood manual. this one is short and sweet: it's all about putting a form on the screen and taking it back off. two little functions. one big slay. β¨
πΈ NAME πΈ
post_form, unpost_form β write or erase forms from associated subwindows
like, literally that. one puts the form up on its subwindow, the other wipes it away. π
π¦ SYNOPSIS π¦
#include <form.h>
int post_form(FORM *form);
int unpost_form(FORM *form);
both take a FORM *form and both hand you back an int. iconic signature, no notes. π
π DESCRIPTION π
okay so. post_form β say it with me β displays a form to its associated subwindow. that's the whole job. it does not magically push pixels to your physical screen though, bestie, so don't come for it. π
if you want the actual physical display of that subwindow to happen, you gotta callrefresh(3X)or some equivalent curses routine. and yes, the implicitdoupdatethat gets triggered by a curses input request counts too β it'll do the trick. β¨
then there's unpost_form, which is the opposite energy entirely: it erases form from its associated subwindow. poof. gone. π«₯
π₯ RETURN VALUE π₯
both of these routines return one of the following, and you will check it, because ignoring return values is not the vibe:
E_OKβ it worked. the routine succeeded. we love a success story. πE_BAD_ARGUMENTβ the routine detected an incorrect or out-of-range argument. something you passed in was Not It. πE_BAD_STATEβ the routine was called from an initialization or termination function. wrong place, wrong time, bestie. πE_NOT_POSTEDβ the form has not been posted. can't unpost what was never posted, babe. πE_NOT_CONNECTEDβ no items are connected to the form. an empty form is giving nothing. πE_NO_ROOMβ the form is too large for its window. it does not fit, and no amount of manifestation will change that. πΈE_SYSTEM_ERRORβ a system error occurred. go checkerrno(3), it'll tell you what's up. πE_POSTEDβ the form has already been posted. you already did that one, queen, we saw you. π
π PORTABILITY π
these routines emulate the System V forms library. that's the whole point. they were not supported on Version 7 or BSD versions β so if you're time-traveling back to those, this page is not for you. π°οΈ
π§ AUTHORS π§
Juergen Pfeifer. and the manual pages + adaptation for new curses? that's Eric S. Raymond. absolute legends, both of them. π«Ά
β SEE ALSO β
curses(3X)form(3X)
go read those next, i'll wait. π
that's the whole page, bestie β brought to you by ncurses 6.5 and dated 2024-03-16. now go post that form. periodt. π β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2015,2017 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms