Manual browser: curses_line(3)
|CURSES_LINE(3)||Library Functions Manual||CURSES_LINE(3)|
NAMEcurses_line, hline, whline, vline, wvline, mvhline, mvwhline, mvvline, mvwvline — curses draw lines on windows routines
LIBRARYCurses Library (libcurses, -lcurses)
hline(chtype ch, int n);
whline(WINDOW *win, chtype ch, int n);
mvhline(int y, int x, chtype ch, int n);
mvwvline(WINDOW *win, int y, int x, chtype c, int n);
vline(chtype c, int n);
wvline(WINDOW *win, chtype c, int n);
mvvline(int y, int x, chtype ch, int n);
mvwhline(WINDOW *win, int y, int x, chtype c, int n);
DESCRIPTIONThese functions draw lines on stdscr or on the specified window.
The hline() function draws a horizontal line of the character ch on stdscr starting at the current cursor position and extending for n characters, or until the right hand side of stdscr is reached. If the text portion of ch is 0 then the line will be drawn with the ACS_HLINE character.
The whline() function is the same as the hline() function, excepting that the line is drawn in the window specified by win.
The vline() function draws a vertical line of character ch on stdscr starting at the current cursor position and moving down until either n characters have been drawn or the bottom of stdscr is reached. If the text portion of ch is 0 then the line will be drawn with the ACS_VLINE character.
The wvline() function is the same as the vline() function, excepting that the line is drawn on the given window.
The mvhline(), mvwhline(), mvvline() and mvwvline() functions are the same as the hline(), whline(), vline() and wvline() functions, respectively, excepting that wmove() is called to move the cursor to the position specified by y, x before the line is drawn on the window.
RETURN VALUESFunctions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:
- The function completed successfully.
- An error occurred in the function.
STANDARDSThe NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
The use of ACS_HLINE and ACS_VLINE as default drawing character in hline() and vline() is a NetBSD extension which should not be relied on in portable code.
HISTORYThe Curses package appeared in 4.0BSD.
|February 19, 2010||NetBSD 7.0|