box

Draws a box around the window using the character vert as the character for drawing the vertical lines of the rectangle, and hor for drawing the horizontal lines of the rectangle.

Format

#include  <curses.h>

int box  (WINDOW *win, char vert, char
         hor);

Arguments

win
The address of the window.
vert
The character for the vertical edges of the window.
hor
The character for the horizontal edges of the window.

Description

This function copies boxes drawn on subwindows onto the underlying window. Use caution when using functions such as overlay and overwrite with boxed subwindows. Such functions copy the box onto the underlying window.

Return Values
OK  Indicates success. 
ERR  Indicates an error. 


Previous Page | Next Page | Table of Contents | Index