form_field_just(3X)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🌸 form_field_just(3X) β€” set_field_just, field_just, and the justification agenda

πŸ’– NAME

set_field_just, field_just β€” retrieve field characteristics. Yes bestie, this is the field-justification corner of the forms library, and it's lowkey iconic.


✨ SYNOPSIS

#include <form.h>

int set_field_just(FIELD *field, int justification);
int field_just(const FIELD *field);

πŸ¦‹ DESCRIPTION

Okay so picture this: set_field_just sets the justification attribute of a field, and field_just returns a field's justification attribute. That's the whole vibe. πŸ’…

The attribute may be one of these four, no cap:

  • NO_JUSTIFICATION
  • JUSTIFY_RIGHT
  • JUSTIFY_LEFT
  • JUSTIFY_CENTER

That's the lineup. Those are the values, periodt.


πŸŽ€ RETURN VALUE

The function field_just returns one of:

  • NO_JUSTIFICATION
  • JUSTIFY_RIGHT
  • JUSTIFY_LEFT
  • JUSTIFY_CENTER

The function set_field_just returns one of the following:

  • E_OK β€” the routine succeeded. Slay.
  • E_SYSTEM_ERROR β€” system error occurred (see errno(3)). 😭
  • E_BAD_ARGUMENT β€” routine detected an incorrect or out-of-range argument. Not the vibe. πŸ’€

🌈 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 to those versions, bestie, this is not the moment. 🫢


πŸ‘‘ AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.


πŸ”₯ SEE ALSO

curses(3X) and related pages whose names begin β€œform_” for detailed descriptions of the entry points. Go browse the form_ family, iykyk. πŸ¦‹


This iconic page is from ncurses 6.5, dated 2024-03-16. Mwah. πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from