form_field_just(3X)
π form_field_just β ok bestie let's talk field justification β¨
so this one's from the ncurses corner of the manual, section 3X, and it's all about field characteristics β specifically, how your text sits inside a form field. left? right? centered? none at all? we're choosing. periodt.
β¨ NAME β¨
set_field_just, field_just β retrieve field characteristics π
πΈ SYNOPSIS πΈ
#include <form.h>
int set_field_just(FIELD *field, int justification);
int field_just(const FIELD *field);
π¦ DESCRIPTION π¦
okay so. set_field_just sets the justification attribute of a field, and field_just hands it right back to you. it's giving "tell me your vibe" / "here's my vibe." π
that attribute can be exactly one of these four, no substitutes:
NO_JUSTIFICATIONJUSTIFY_RIGHTJUSTIFY_LEFTJUSTIFY_CENTER
π RETURN VALUE π
field_just returns one of these, literally one of these four and nothing else:
NO_JUSTIFICATIONJUSTIFY_RIGHTJUSTIFY_LEFTJUSTIFY_CENTER
set_field_just returns one of the following, and yes we're listing every single one:
E_OKβ the routine succeeded. slay. πE_SYSTEM_ERRORβ a system error occurred (go peek aterrno(3), it'll tell you what's up).E_BAD_ARGUMENTβ the routine detected an incorrect or out-of-range argument. bestie. that's not a valid one. π
π 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 old-school on those, this is a no. π«Ά
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. icons, honestly. π
β SEE ALSO β
curses(3X) and related pages whose names begin βform_β for detailed descriptions of the entry points. iykyk π
and that's the whole page, bestie β this one shipped with ncurses 6.6, dated 2024-03-16. go justify something gorgeous. πβ¨π¦
π¦ 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