field_just(3FORM)
π field_just(3FORM) π
okay bestie, pull up a chair because we're talking about field_just(3FORM) from the forms library and honestly? it's giving "small but mighty." π
β¨ 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);
like yes, that's the whole vibe. two little functions. one sets, one gets. slay. π
π¦ DESCRIPTION π¦
so set_field_just sets the justification attribute of a field, and field_just returns a field's justification attribute. that's it, that's the dynamic. π₯
and that attribute can be exactly one of these four besties:
NO_JUSTIFICATIONJUSTIFY_RIGHTJUSTIFY_LEFTJUSTIFY_CENTER
no cap, that's the whole list. pick one. π
π RETURN VALUE π
field_just hands you back one of these:
NO_JUSTIFICATIONJUSTIFY_RIGHTJUSTIFY_LEFTJUSTIFY_CENTER
meanwhile set_field_just is out here returning one of the following:
E_OKβ the routine succeeded, we love to see it, iconic behavior β¨E_SYSTEM_ERRORβ a system error occurred (go peek aterrno(3), bestie, it knows what happened) πE_BAD_ARGUMENTβ the routine detected an incorrect or out-of-range argument π
fr fr, check that return value. it's not just decor.
π§ 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 those, this is not the moment. π
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. absolute legends, we stan. π«Ά
β SEE ALSO β
ncurses(3NCURSES) and related pages whose names begin βform_β for detailed descriptions of the entry points. iykyk, go read the whole family. π
and that's the page!! this lil manual came from ncurses 6.6, dated 2024-03-16 β so when you're out here justifying your fields, just know the source said it first. bye bestie, go center something pretty πβ¨π
π¦ 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