1hline(3XCURSES)         X/Open Curses Library Functions        hline(3XCURSES)
2
3
4

NAME

6       hline,  mvhline,  mvvline,  mvwhline, mvwvline, vline, whline, wvline -
7       use single-byte characters (and renditions) to draw lines
8

SYNOPSIS

10       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
11        -R  /usr/xpg4/lib  -lcurses  [ library... ]
12
13       c89 [ flag... ] file... -lcurses [ library... ]
14
15       #include <curses.h>
16
17       int hline(chtype ch, int n);
18
19
20       int mvhline(int y, int x, chtype ch, int n);
21
22
23       int mvvline(int y, int x, chtype ch, int n);
24
25
26       int mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
27
28
29       int mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
30
31
32       int vline(chtype ch, int n);
33
34
35       int whline(WINDOW *win, chtype ch, int n);
36
37
38       int wvline(WINDOW *win, chtype ch, int n);
39
40

DESCRIPTION

42       The hline(), vline(), whline(), wvline() functions  draw  a  horizontal
43       or  vertical  line, in either the window stdscr or win  starting at the
44       current cursor position. The line is drawn using the character  ch  and
45       is  a maximum of n positions long, or as many as will fit into the win‐
46       dow.  If ch is 0 (zero), the default horizontal or  vertical  character
47       is used.
48
49
50       The mvhline(), mvvline(), mvwhline(), mvwvline()  functions are similar
51       to the previous group of functions but the line begins  at cursor posi‐
52       tion specified by x and y.
53
54
55       The functions with names ending with hline() draw horizontal lines pro‐
56       ceeding towards the last column of the same line.  The  functions  with
57       names  ending  with  vline() draw vertical lines proceeding towards the
58       last column of the same line.
59
60
61       These functions do not change the position of the cursor.
62

PARAMETERS

64       ch     Is the character used to draw the line.
65
66
67       n      Is the maximum number of characters in the line.
68
69
70       y      Is the y (row) coordinate for the start of the line.
71
72
73       x      Is the x (column) coordinate for the start of the line.
74
75
76       win    Is a pointer to a window.
77
78

RETURN VALUES

80       On success, these functions return OK. Otherwise, they return ERR.
81

ERRORS

83       None
84

ATTRIBUTES

86       See attributes(5) for descriptions of the following attributes:
87
88
89
90
91       ┌─────────────────────────────┬─────────────────────────────┐
92       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
93       ├─────────────────────────────┼─────────────────────────────┤
94       │Interface Stability          │Standard                     │
95       ├─────────────────────────────┼─────────────────────────────┤
96       │MT-Level                     │Unsafe                       │
97       └─────────────────────────────┴─────────────────────────────┘
98

SEE ALSO

100       border(3XCURSES),      border_set(3XCURSES),       hline_set(3XCURSES),
101       libcurses(3XCURSES), attributes(5), standards(5)
102
103
104
105SunOS 5.11                        5 Jun 2002                   hline(3XCURSES)
Impressum