The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


box - draw borders from single-byte characters and renditions


#include <curses.h>

int box(WINDOW *win, chtype verch, chtype horch);


The box() function draws a border around the edges of the specified window. This function does not advance the cursor position. This function 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);


Upon successful completion, box() returns OK. Otherwise, it returns ERR.


No errors are defined.


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.


border(), box_set(), hline(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]