cursor(3FORM)
π cursor(3FORM) π
okay bestie, so this is a page from the ncurses family β cursor(3FORM) β and it's all about one tiny little function that puts the cursor back where it belongs. no cap. β¨
πΈ NAME πΈ
pos_form_cursor β position a form window cursor π
β¨ SYNOPSIS β¨
#include <form.h>
int pos_form_cursor(FORM *form);
π¦ DESCRIPTION π¦
okay so pos_form_cursor does the thing where it restores the cursor to the position that the forms driver needs it to be in so it can keep processing requests. like, it's putting the cursor back where the driver expects to find it. π
and why do you care? because it's useful after you've called curses routines to do some screen-painting in response to a form operation. you painted the screen, you moved the cursor all over the place with your little curses art project, and now the forms driver is like "umm where's my cursor bestie" β so you call this and everything's chill again. π«Ά
π RETURN VALUE π
this routine returns one of the following, and you will be checking it, periodt:
E_OKβ the routine succeeded. slay! πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. πE_NOT_POSTEDβ the form has not been posted. πE_SYSTEM_ERRORβ system error occurred (seeerrno(3)). π
π PORTABILITY π
these routines emulate the System V forms library. they were not supported on Version 7 or BSD versions. so if you're kicking it on ancient V7 or BSD, this is not the vibe, iykyk. π§
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. absolute icons, honestly. π
π SEE ALSO π
ncurses(3NCURSES)form(3FORM)
that's the whole page, babe β short, sweet, and it does exactly one thing really well. π
sign-off time: this was ncurses 6.6, dated 2024-03-16, and yes it still says cursor(3FORM) at the bottom like a little signature. mwah. π
β¨
π¦ 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-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