Draws borders from single-byte characters and renditions.
#include <curses.h>
int box(WINDOW *win, chtype verch, chtype horch);
The box subroutine draws a border around the edges of the specified window. This subroutine does not advance the cursor position. This subroutine does not perform special character processing or perform wrapping.
The box subroutine (*win, verch, horch) has an effect equivalent to:
wborder(win, verch, verch, horch, horch, 0, 0, 0, 0);
Upon successful completion, the box function returns OK. Otherwise, it returns ERR.
WINDOW *my_window; box(my_window, '|', '-');
WINDOW *my_window; box(my_window, 0, 0);
This subroutine is part of Base Operating System (BOS) Runtime.
The border, box_set, and hline subroutines.
Curses Overview for Programming, List of Curses Subroutines, and Windows in the Curses Environment in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.