1ripoffline(3XCURSES) X/Open Curses Library Functions ripoffline(3XCURSES)
2
3
4
6 ripoffline - reserve screen line for dedicated purpose
7
9 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
10 -R /usr/xpg4/lib -lcurses [ library... ]
11
12 c89 [ flag... ] file... -lcurses [ library... ]
13
14 #include <curses.h>
15
16 int ripoffline(int line, int (*init)(WINDOW *win, int width));
17
18
20 line determines whether the screen line being reserved comes from
21 the top of stdscr (line is positive) or the bottom (line is
22 negative).
23
24
25 init Is a pointer to a function that initializes the one-line win‐
26 dow.
27
28
29 win Is a pointer to one-line window created by this function.
30
31
32 width Is the number of columns in the window pointed to by the win
33 parameter.
34
35
37 The ripoffline() function reserves a screen line as a one line window.
38
39
40 To use this function, it must be called before you call
41 initscr(3XCURSES) or newterm(3XCURSES). When initscr() or newterm() is
42 called, so is the function pointed to by init. The function pointed to
43 by init takes two arguments: a pointer to the one-line window and the
44 number of columns in that window. This function cannot use the LINES or
45 COLS variables and cannot call wrefresh(3XCURSES) or doup‐
46 date(3XCURSES), but may call wnoutrefresh(3XCURSES).
47
49 The rioffline() function always returns OK.
50
52 None.
53
55 See attributes(5) for descriptions of the following attributes:
56
57
58
59
60 ┌─────────────────────────────┬─────────────────────────────┐
61 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
62 ├─────────────────────────────┼─────────────────────────────┤
63 │Interface Stability │Standard │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │MT-Level │Unsafe │
66 └─────────────────────────────┴─────────────────────────────┘
67
69 doupdate(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES),
70 slk_attroff(3XCURSES), attributes(5), standards(5)
71
72
73
74SunOS 5.11 5 Jun 2002 ripoffline(3XCURSES)