|
|
#include <curses.h>int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); int box(WINDOW *win, chtype verch, chtype horch); int hline(chtype ch, int n); int whline(WINDOW *win, chtype ch, int n); int vline(chtype ch, int n); int wvline(WINDOW *win, chtype ch, int n);
The routines border(S-osr5), wborder(S-osr5), and box(S-osr5) draw a border around the edges of the window. Each of the following arguments is a character and its attributes:
If an argument is zero, the following default value is used instead:
These values are defined in curses.h.
The sequence
box(win, verch, horch)
is a shorthand for the following call:
wborder(win, verch, verch, horch, horch, 0, 0, 0, 0)hline(S-osr5) and whline(S-osr5) draw a horizontal line of character ch to the right from the current cursor position. The cursor does not move. The line is at most n characters long, or as many as fit into the window.
vline(S-osr5) and wvline(S-osr5) draw a vertical line of character ch down from the current cursor position. The cursor does not move. The line is at most n characters long, or as many as fit into the window.
The following can be macros:
border( )
and
box( ).