Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix volatile manual

This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.

NAME

data_ahead, data_behind — form library

LIBRARY

Curses Form Library (libform, -lform)

SYNOPSIS

#include <form.h>
int
data_ahead(FORM *form);
int
data_behind(FORM *form);

DESCRIPTION

If there is data offscreen to the right of the current field of the given form then data_ahead() will return TRUE, otherwise FALSE is returned. Similarly, if there is data offscreen to the left of the current field of the given form then data_behind() will return TRUE.

RETURN VALUES

If the condition is met then the functions will return TRUE, if there is an error or there is no data offscreen the functions will return FALSE.

SEE ALSO

curses(3), forms(3)

NOTES

The header <form.h> automatically includes both <curses.h> and <eti.h>.
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org