Draws borders from single-byte characters and renditions.
Curses Library (libcurses.a)
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);
Item | Description |
---|---|
horch | Specifies the character to draw the horizontal lines of the box. The character must be a 1-column character. |
verch | Specifies the character to draw the vertical lines of the box. The character must be a 1-column character. |
*win | Specifies the window to draw the box in or around. |
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);