hline(CURSES)
hline --
draw lines from single-byte characters and renditions
Synopsis
cc [options] file -lcurses
#include <curses.h>
int hline(chtype ch, int n);
int mvhline(int y, int x, chtype ch, int n);
int mvvline(int y, int x, chtype ch, int n);
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
int vline(chtype ch, int n);
int whline(WINDOW *win, chtype ch, int n);
int wvline(WINDOW *win, chtype ch, int n);
Description
These functions draw a line in the current or specified window starting at the
current or specified position, using ch. The line is at most n
positions long, or as many as fit into the window.
These functions do not advance the cursor position.
These functions do not perform special character processing.
These functions do not perform wrapping.
The
hline(CURSES),
mvhline(CURSES),
mvwhline(CURSES)
and
whline(CURSES)
functions draw a line proceeding toward the last column of the same line.
The
vline(CURSES),
mvvline(CURSES),
mvwvline(CURSES)
and
wvline(CURSES)
functions draw a line proceeding toward the last line of the window.
Return value
Upon successful completion, these functions return OK.
Otherwise, they return ERR.
Errors
No errors are defined.
Usage
These functions are only guaranteed to operate reliably on character sets in
which each character fits into a single byte, whose attributes can be
expressed using only constants with the A_ prefix.
Standards Conformance
The Single UNIX Specification, Version 2; The Open Group.
References
border(CURSES),
box(CURSES),
hline_set(CURSES),
curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005