form_field_attributes(3X)
π 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 (seeerrno(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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2006,2010 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms