form_cursor(3X)
π form_cursor(3X) β Library calls π
okay bestie, pull up a chair πͺ because this is a lil page from the ncurses manual, and it's literally all about putting a cursor back where it belongs. it's short. it's sweet. it's giving "small but mighty" energy. let's get into it β¨
πΈ NAME πΈ
pos_form_cursor β position a form window cursor π―
like. the whole job. right there in the name. iconic.
π¦ SYNOPSIS π¦
#include <form.h>
int pos_form_cursor(FORM *form);
that's it. that's the whole vibe. one include, one function call, one FORM * pointer. chef's kiss π
β¨ DESCRIPTION β¨
so pos_form_cursor does one very specific little thing and it does it well: it restores the cursor to the position required for the forms driver to continue processing requests. π
and why would you even need that, you ask? great question, bestie. because sometimes you're out here calling curses routines to do some screen-painting in response to a form operation β and once you've done all that decorating π¨, the cursor has wandered off to god knows where. this function is the "babe come back, the driver needs you at your post" of the forms library. fr fr.
π«Ά RETURN VALUE π«Ά
this routine returns one of the following, and you should absolutely check which one you got:
E_OKβ the routine succeeded. slay!! π everything worked, go take a lil nap.E_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. π something you passed in was simply not it.E_NOT_POSTEDβ the form has not been posted. you skipped a step, bestie. the form isn't out there yet.E_SYSTEM_ERRORβ system error occurred (seeerrno(3)). π not your fault, the system is just having a day.
π PORTABILITY π
these routines emulate the System V forms library. they were not supported on Version 7 or BSD versions. so if you're time-traveling back to an old-school system expecting this to workβ¦ it's not gonna. periodt. π°οΈ
π AUTHORS π
- Juergen Pfeifer.
- Manual pages and adaptation for new curses by Eric S. Raymond.
absolute legends, both of them. we love a credited icon πβ¨
π SEE ALSO π
curses(3X)form(3X)
go read those too, bestie, they're part of the same lil universe πͺ
lowkey reminder: this page lives in the ncurses world, so if you're doing anything with forms at all, you're in the right place π«Ά
and that's the whole page, bestie!! π this manual page came to you from ncurses 6.6, dated 2024-03-16, and that's the source/version + date sign-off, so you know exactly which flavor of the docs you just read. mwah π β¨
π¦ 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-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms