form_cursor(3X)
π form_cursor β like, the cursor-putting-back girlie of the forms world β¨
okay so this is a page from the ncurses manual, section 3X β yes bestie, the library calls girlies. it's called form_cursor(3X) and it's short, it's sweet, it's lowkey iconic. let's get into it π
β¨ NAME β¨
pos_form_cursor β puts the form window cursor back where it belongs π
πΈ SYNOPSIS πΈ
#include <form.h>
int pos_form_cursor(FORM *form);
that's it. one include, one function, one FORM * argument. no cap, she's a minimalist π¦
π«Ά DESCRIPTION π«Ά
so pos_form_cursor restores the cursor to the position required for the forms driver to continue processing requests. periodt. it literally puts the cursor back where the forms driver needs it so it can keep doing its thing π
and when do you need this? bestie, it's useful after curses routines have been called to do screen-painting in response to a form operation β like, the moment you go off and paint the screen yourself, the cursor gets all up in the wrong place, and this function is the one that fixes the vibe check and repositions it π
π RETURN VALUE π
this routine returns one of the following, and every single one of them matters, so don't skip:
E_OKβ the routine succeeded. slay. we love a win β¨E_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument π something you passed in was just... not itE_NOT_POSTEDβ the form has not been posted. girl where is the form. it's not even posted yet πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). the system said no and you should go peek aterrno(3)for the receipts π₯
π PORTABILITY π
these routines emulate the System V forms library. and just so we're clear β they were not supported on Version 7 or BSD versions π« so if you're on some ancient Version 7 or BSD situation, this is not the function for you, sorry bestie π
π AUTHORS π
Juergen Pfeifer. π«Ά and the manual pages and adaptation for new curses by Eric S. Raymond. absolute icons, both of them, we stan β
π¦ SEE ALSO π¦
curses(3X)form(3X)
go read those too, iykyk π
and that's the whole page, bestie β ncurses 6.5, dated 2024-03-16, form_cursor(3X) out. mwah ππ§ββοΈ
π¦ 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-2010,2015 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