box(3X) box(3X)
NAME
box - draw borders from single-byte characters and renditions
SYNOPSIS
cc [flag ...] file ... -lcurses [library ...]
#include <curses.h>
int box(WINDOW *win, chtype verch, chtype horch);
DESCRIPTION
The box() function draws a border around the edges of the specified
window. This function does not advance the cursor position. This func-
tion does not perform special character processing. This function does
not perform wrapping.
The function box(win, verch, horch) has an effect equivalent to:
wborder(win, verch, verch, horch, horch, 0, 0, 0, 0);
RETURN VALUE
Upon successful completion, box() returns OK. Otherwise, it returns
ERR.
ERRORS
No errors are defined.
NOTES
These functions are only guaranteed to operate reliably on character
sets in which each character fits into a single byte, whose attributes
can be expressed using only constants with the A prefix.
SEE ALSO
border(3X), boxset(3X), curses(3X), hline(3X), curses(5).
Page 1 Reliant UNIX 5.44 Printed 11/98