form_field_attributes(3X)

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

πŸ’… form_field_attributes β€” color and attribute control for form fields πŸ’…

okay so this is the <pink>form_field_attributes(3X)</pink> page, living its best life in the Library calls section. It’s all about making form fields look cute with colors and attributes β€” and returning exactly the values you set, no cap. ✨

🌸 NAME 🌸

form_field_attributes β€” color and attribute control for form fields

πŸŽ€ SYNOPSIS πŸŽ€

#include <form.h>

int set_field_fore(FIELD *field, chtype attr);
chtype field_fore(const FIELD *field);

int set_field_back(FIELD *field, chtype attr);
chtype field_back(const FIELD *field);

int set_field_pad(FIELD *field, int pad);
int field_pad(const FIELD *field);

πŸ¦‹ DESCRIPTION πŸ¦‹

So set_field_fore sets the foreground attribute of field. This is the highlight used to display the field contents. The function field_fore returns the foreground attribute. The default is A_STANDOUT. Slay. πŸ’…

The function set_field_back sets the background attribute of form. This is the highlight used to display extent fields in the form. The function field_back returns the background attribute. The default is A_NORMAL. Iconic. ✨

The function set_field_pad sets the character used to fill the field. The function field_pad returns the given form’s pad character. The default is a blank. Blank-slate main character energy, honestly. πŸŽ€

⭐ RETURN VALUE ⭐

These routines return one of the following:

  • E_OK β€” the routine succeeded. we love a happy ending πŸ’–
  • E_BAD_ARGUMENT β€” routine detected an incorrect or out-of-range argument. rude, but valid 🫠
  • E_SYSTEM_ERROR β€” system error occurred (see errno(3)). not the vibe, bestie 😭

🌈 PORTABILITY 🌈

These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions. so like, historically speaking, this was a no-show on those, fr fr. πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. legends only, honestly. 🫢

πŸ’œ SEE ALSO πŸ’œ

curses(3X) and related pages whose names begin β€œform_” for detailed descriptions of the entry points.


okay that’s the whole page, bestie β€” brought to you by ncurses 6.5, dated 2024-03-16. mwah πŸ’‹

πŸ“¦ where this page comes from