2 .\" Copyright 2011 Nexenta Systems, Inc. All rights reserved.
3 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
5 .\" The contents of this file are subject to the terms of the
6 .\" Common Development and Distribution License (the "License").
7 .\" You may not use this file except in compliance with the License.
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 .\" or http://www.opensolaris.org/os/licensing.
11 .\" See the License for the specific language governing permissions
12 .\" and limitations under the License.
14 .\" When distributing Covered Code, include this CDDL HEADER in each
15 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 .\" If applicable, add the following below this CDDL HEADER, with the
17 .\" fields enclosed by brackets "[]" replaced with your own identifying
18 .\" information: Portions Copyright [yyyy] [name of copyright owner]
20 .TH LIBCURSES 3LIB "May 13, 2017"
22 libcurses, libtermcap, libtermlib \- screen handling and optimization library
26 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR... ]
31 Functions in the \fBlibcurses\fR library provide a terminal-independent
32 method of updating character screens with reasonable optimization.
34 The \fBlibtermcap\fR library is a "filter" on \fBlibcurses\fR
35 that provides the traditional BSD-style termcap functions,
36 and does so in a way that allows the consuming library or
37 application to link with an alternate curses library.
39 The \fBlibtermlib\fR library is identical to \fBlibcurses\fR and
40 is maintained for backward compatibility.
43 See \fBlibcurses\fR(3XCURSES) for information about the curses library that
44 conforms to X/Open Curses, Issue 4, Version 2.
47 The shared objects \fBlibcurses.so.1\fR and
48 \fBlibtermlib.so.1\fR provide the public interfaces defined below. See
49 \fBIntro\fR(3) for additional information on shared object interfaces.
55 \fB_getsyx\fR \fB_meta\fR
56 \fB_ring\fR \fB_setecho\fR
57 \fB_setnonl\fR \fB_setqiflush\fR
58 \fBaddch\fR \fBaddchnstr\fR
59 \fBaddchstr\fR \fBaddnstr\fR
60 \fBaddnwstr\fR \fBaddstr\fR
61 \fBaddwch\fR \fBaddwchnstr\fR
62 \fBaddwchstr\fR \fBaddwstr\fR
63 \fBattroff\fR \fBattron\fR
64 \fBattrset\fR \fBbaudrate\fR
66 \fBbkgdset\fR \fBborder\fR
67 \fBbox\fR \fBcan_change_color\fR
68 \fBcbreak\fR \fBclear\fR
69 \fBclearok\fR \fBclrtobot\fR
70 \fBclrtoeol\fR \fBcolor_content\fR
71 \fBcopywin\fR \fBcrmode\fR
72 \fBcurs_set\fR \fBcurserr\fR
73 \fBdef_prog_mode\fR \fBdef_shell_mode\fR
74 \fBdel_curterm\fR \fBdelay_output\fR
75 \fBdelch\fR \fBdeleteln\fR
76 \fBdelkeymap\fR \fBdelscreen\fR
77 \fBdelwin\fR \fBderwin\fR
78 \fBdoupdate\fR \fBdupwin\fR
79 \fBecho\fR \fBechochar\fR
80 \fBechowchar\fR \fBendwin\fR
81 \fBerase\fR \fBerasechar\fR
82 \fBfilter\fR \fBflash\fR
83 \fBflushinp\fR \fBgetbmap\fR
84 \fBgetch\fR \fBgetmouse\fR
85 \fBgetnwstr\fR \fBgetstr\fR
86 \fBgetwch\fR \fBgetwin\fR
87 \fBgetwstr\fR \fBhalfdelay\fR
88 \fBhas_colors\fR \fBhas_ic\fR
89 \fBhas_il\fR \fBidcok\fR
90 \fBidlok\fR \fBimmedok\fR
91 \fBinch\fR \fBinchnstr\fR
92 \fBinchstr\fR \fBinit_color\fR
93 \fBinit_pair\fR \fBinitscr\fR
94 \fBinnstr\fR \fBinnwstr\fR
95 \fBinsch\fR \fBinsdelln\fR
96 \fBinsertln\fR \fBinsnstr\fR
97 \fBinsnwstr\fR \fBinsstr\fR
98 \fBinstr\fR \fBinswch\fR
99 \fBinswstr\fR \fBintrflush\fR
100 \fBinwch\fR \fBinwchnstr\fR
101 \fBinwchstr\fR \fBinwstr\fR
102 \fBis_linetouched\fR \fBis_wintouched\fR
103 \fBisendwin\fR \fBkeyname\fR
104 \fBkeypad\fR \fBkillchar\fR
105 \fBleaveok\fR \fBlongname\fR
106 \fBm_addch\fR \fBm_addstr\fR
107 \fBm_clear\fR \fBm_erase\fR
108 \fBm_initscr\fR \fBm_move\fR
109 \fBm_newterm\fR \fBm_refresh\fR
110 \fBmap_button\fR \fBmeta\fR
111 \fBmouse_off\fR \fBmouse_on\fR
112 \fBmouse_set\fR \fBmove\fR
113 \fBmvaddch\fR \fBmvaddchnstr\fR
114 \fBmvaddchstr\fR \fBmvaddnstr\fR
115 \fBmvaddnwstr\fR \fBmvaddstr\fR
116 \fBmvaddwch\fR \fBmvaddwchnstr\fR
117 \fBmvaddwchstr\fR \fBmvaddwstr\fR
118 \fBmvcur\fR \fBmvdelch\fR
119 \fBmvderwin\fR \fBmvgetch\fR
120 \fBmvgetnwstr\fR \fBmvgetstr\fR
121 \fBmvgetwch\fR \fBmvgetwstr\fR
122 \fBmvinch\fR \fBmvinchnstr\fR
123 \fBmvinchstr\fR \fBmvinnstr\fR
124 \fBmvinnwstr\fR \fBmvinsch\fR
125 \fBmvinsnstr\fR \fBmvinsnwstr\fR
126 \fBmvinsstr\fR \fBmvinstr\fR
127 \fBmvinswch\fR \fBmvinswstr\fR
128 \fBmvinwch\fR \fBmvinwchnstr\fR
129 \fBmvinwchstr\fR \fBmvinwstr\fR
130 \fBmvprintw\fR \fBmvscanw\fR
131 \fBmvwaddch\fR \fBmvwaddchnstr\fR
132 \fBmvwaddchstr\fR \fBmvwaddnstr\fR
133 \fBmvwaddnwstr\fR \fBmvwaddstr\fR
134 \fBmvwaddwch\fR \fBmvwaddwchnstr\fR
135 \fBmvwaddwchstr\fR \fBmvwaddwstr\fR
136 \fBmvwdelch\fR \fBmvwgetch\fR
137 \fBmvwgetnwstr\fR \fBmvwgetstr\fR
138 \fBmvwgetwch\fR \fBmvwgetwstr\fR
139 \fBmvwin\fR \fBmvwinch\fR
140 \fBmvwinchnstr\fR \fBmvwinchstr\fR
141 \fBmvwinnstr\fR \fBmvwinnwstr\fR
142 \fBmvwinsch\fR \fBmvwinsnstr\fR
143 \fBmvwinsnwstr\fR \fBmvwinsstr\fR
144 \fBmvwinstr\fR \fBmvwinswch\fR
145 \fBmvwinswstr\fR \fBmvwinwch\fR
146 \fBmvwinwchnstr\fR \fBmvwinwchstr\fR
147 \fBmvwinwstr\fR \fBmvwprintw\fR
148 \fBmvwscanw\fR \fBnapms\fR
149 \fBnewkey\fR \fBnewpad\fR
150 \fBnewscreen\fR \fBnewterm\fR
151 \fBnewwin\fR \fBnl\fR
152 \fBnocbreak\fR \fBnocrmode\fR
153 \fBnodelay\fR \fBnoecho\fR
154 \fBnonl\fR \fBnoqiflush\fR
155 \fBnoraw\fR \fBnotimeout\fR
156 \fBoverlay\fR \fBoverwrite\fR
157 \fBpair_content\fR \fBpechochar\fR
158 \fBpechowchar\fR \fBpnoutrefresh\fR
159 \fBprefresh\fR \fBprintw\fR
160 \fBputp\fR \fBputwin\fR
161 \fBqiflush\fR \fBraw\fR
162 \fBredrawwin\fR \fBrefresh\fR
163 \fBrequest_mouse_pos\fR \fBreset_prog_mode\fR
164 \fBreset_shell_mode\fR \fBresetty\fR
165 \fBrestartterm\fR \fBripoffline\fR
166 \fBsavetty\fR \fBscanw\fR
167 \fBscr_dump\fR \fBscr_init\fR
168 \fBscr_restore\fR \fBscr_set\fR
169 \fBscrl\fR \fBscroll\fR
170 \fBscrollok\fR \fBset_term\fR
171 \fBsetcurscreen\fR \fBsetscrreg\fR
172 \fBsetsyx\fR \fBsetterm\fR
173 \fBsetupterm\fR \fBslk_attroff\fR
174 \fBslk_attron\fR \fBslk_attrset\fR
175 \fBslk_clear\fR \fBslk_init\fR
176 \fBslk_label\fR \fBslk_noutrefresh\fR
177 \fBslk_refresh\fR \fBslk_restore\fR
178 \fBslk_set\fR \fBslk_start\fR
179 \fBslk_touch\fR \fBstandend\fR
180 \fBstandout\fR \fBstart_color\fR
181 \fBsubpad\fR \fBsubwin\fR
182 \fBsyncok\fR \fBtermattrs\fR
183 \fBtermname\fR \fBtgetent\fR
184 \fBtgetflag\fR \fBtgetnum\fR
185 \fBtgetstr\fR \fBtgoto\fR
186 \fBtigetflag\fR \fBtigetnum\fR
187 \fBtigetstr\fR \fBtimeout\fR
188 \fBtouchline\fR \fBtouchwin\fR
189 \fBtparm\fR \fBtputs\fR
190 \fBtraceoff\fR \fBtraceon\fR
191 \fBtypeahead\fR \fBunctrl\fR
192 \fBungetch\fR \fBungetwch\fR
193 \fBuntouchwin\fR \fBvidattr\fR
194 \fBvidputs\fR \fBvidupdate\fR
195 \fBvwprintw\fR \fBvwscanw\fR
196 \fBwaddch\fR \fBwaddchnstr\fR
197 \fBwaddchstr\fR \fBwaddnstr\fR
198 \fBwaddnwstr\fR \fBwaddstr\fR
199 \fBwaddwch\fR \fBwaddwchnstr\fR
200 \fBwaddwchstr\fR \fBwaddwstr\fR
201 \fBwadjcurspos\fR \fBwattroff\fR
202 \fBwattron\fR \fBwattrset\fR
203 \fBwbkgd\fR \fBwbkgdset\fR
204 \fBwborder\fR \fBwclear\fR
205 \fBwclrtobot\fR \fBwclrtoeol\fR
206 \fBwcursyncup\fR \fBwdelch\fR
207 \fBwdeleteln\fR \fBwechochar\fR
208 \fBwechowchar\fR \fBwerase\fR
209 \fBwgetch\fR \fBwgetnstr\fR
210 \fBwgetnwstr\fR \fBwgetstr\fR
211 \fBwgetwch\fR \fBwgetwstr\fR
212 \fBwhline\fR \fBwinch\fR
213 \fBwinchnstr\fR \fBwinchstr\fR
214 \fBwinnstr\fR \fBwinnwstr\fR
215 \fBwinsch\fR \fBwinsdelln\fR
216 \fBwinsertln\fR \fBwinsnstr\fR
217 \fBwinsnwstr\fR \fBwinsstr\fR
218 \fBwinstr\fR \fBwinswch\fR
219 \fBwinswstr\fR \fBwinwch\fR
220 \fBwinwchnstr\fR \fBwinwchstr\fR
221 \fBwinwstr\fR \fBwmouse_position\fR
222 \fBwmove\fR \fBwmovenextch\fR
223 \fBwmoveprevch\fR \fBwnoutrefresh\fR
224 \fBwprintw\fR \fBwredrawln\fR
225 \fBwrefresh\fR \fBwscanw\fR
226 \fBwscrl\fR \fBwsetscrreg\fR
227 \fBwstandend\fR \fBwstandout\fR
228 \fBwsyncdown\fR \fBwsyncup\fR
229 \fBwtimeout\fR \fBwtouchln\fR
234 The shared object \fBlibtermcap.so.1\fR provides the traditional
235 BSD-style interfaces defined below:
252 \fB\fB/lib/libcurses.so.1\fR\fR
261 \fB\fB/lib/64/libcurses.so.1\fR\fR
270 \fB\fB/lib/libtermcap.so.1\fR\fR
273 shared object (symbolic link to \fB/lib/libcurses.so.1\fR)
279 \fB\fB/lib/64/libtermcap.so.1\fR\fR
282 64-bit shared object (symbolic link to \fB/lib/64/libcurses.so.1\fR)
288 \fB\fB/lib/libtermlib.so.1\fR\fR
291 shared object (symbolic link to \fB/lib/libcurses.so.1\fR)
297 \fB\fB/lib/64/libtermlib.so.1\fR \fR
300 64-bit shared object (symbolic link to \fB/lib/64/libcurses.so.1\fR)
305 See \fBattributes\fR(5) for descriptions of the following attributes:
313 ATTRIBUTE TYPE ATTRIBUTE VALUE
319 \fBIntro\fR(3), \fBcurses\fR(3CURSES),
320 \fBlibcurses\fR(3XCURSES), \fBattributes\fR(5)