]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_sp_funcs.3x
ncurses 6.2 - patch 20210828
[ncurses.git] / man / curs_sp_funcs.3x
1 .\"***************************************************************************
2 .\" Copyright 2018-2020,2021 Thomas E. Dickey                                *
3 .\" Copyright 2010-2015,2017 Free Software Foundation, Inc.                  *
4 .\"                                                                          *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
6 .\" copy of this software and associated documentation files (the            *
7 .\" "Software"), to deal in the Software without restriction, including      *
8 .\" without limitation the rights to use, copy, modify, merge, publish,      *
9 .\" distribute, distribute with modifications, sublicense, and/or sell       *
10 .\" copies of the Software, and to permit persons to whom the Software is    *
11 .\" furnished to do so, subject to the following conditions:                 *
12 .\"                                                                          *
13 .\" The above copyright notice and this permission notice shall be included  *
14 .\" in all copies or substantial portions of the Software.                   *
15 .\"                                                                          *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23 .\"                                                                          *
24 .\" Except as contained in this notice, the name(s) of the above copyright   *
25 .\" holders shall not be used in advertising or otherwise to promote the     *
26 .\" sale, use or other dealings in this Software without prior written       *
27 .\" authorization.                                                           *
28 .\"***************************************************************************
29 .\"
30 .\" $Id: curs_sp_funcs.3x,v 1.25 2021/05/22 22:12:46 tom Exp $
31 .TH curs_sp_funcs 3X ""
32 .ie \n(.g .ds `` \(lq
33 .el       .ds `` ``
34 .ie \n(.g .ds '' \(rq
35 .el       .ds '' ''
36 .na
37 .hy 0
38 .SH NAME
39 curs_sp_funcs \- \fBcurses\fR screen-pointer extension
40 .ad
41 .hy
42 .SH SYNOPSIS
43 \fB#include <curses.h>\fR
44 .nf
45 .sp
46 \fBint alloc_pair_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIfg\fP\fB, int \fP\fIbg\fP\fB);\fR
47 .br
48 \fBint assume_default_colors_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIfg\fP\fB, int \fP\fIbg\fP\fB);\fR
49 .br
50 \fBint baudrate_sp(SCREEN* \fP\fIsp\fP\fB);\fR
51 .br
52 \fBint beep_sp(SCREEN* \fP\fIsp\fP\fB);\fR
53 .br
54 \fBbool can_change_color_sp(SCREEN* \fP\fIsp\fP\fB);\fR
55 .br
56 \fBint cbreak_sp(SCREEN* \fP\fIsp\fP\fB);\fR
57 .br
58 \fBint color_content_sp(SCREEN* \fP\fIsp\fP\fB, short \fP\fIcolor\fP\fB, short* \fP\fIr\fP\fB, short* \fP\fIg\fP\fB, short* \fP\fIb\fP\fB);\fR
59 .br
60 \fBint curs_set_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIvisibility\fP);\fR
61 .br
62 \fBint def_prog_mode_sp(SCREEN* \fP\fIsp\fP\fB);\fR
63 .br
64 \fBint def_shell_mode_sp(SCREEN* \fP\fIsp\fP\fB);\fR
65 .sp
66 \fBint define_key_sp(SCREEN* \fP\fIsp\fP\fB, const char * \fP\fIdefinition\fP\fB, int \fP\fIkeycode\fP\fB);\fR
67 .br
68 \fBint delay_output_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIms\fP\fB);\fR
69 .br
70 \fBint doupdate_sp(SCREEN* \fP\fIsp\fP\fB);\fR
71 .br
72 \fBint echo_sp(SCREEN* \fP\fIsp\fP\fB);\fR
73 .br
74 \fBint endwin_sp(SCREEN* \fP\fIsp\fP\fB);\fR
75 .br
76 \fBchar erasechar_sp(SCREEN* \fP\fIsp\fP\fB);\fR
77 .br
78 \fBint erasewchar_sp(SCREEN* \fP\fIsp\fP\fB, wchar_t *\fP\fIch\fP\fB);\fR
79 .br
80 \fBint extended_color_content_sp(SCREEN * \fP\fIsp\fP\fB, int \fP\fIcolor\fP\fB, int * \fP\fIr\fP\fB, int * \fP\fIg\fP\fB, int * \fP\fIb\fP\fB);\fR
81 .br
82 \fBint extended_pair_content_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIpair\fP\fB, int * \fP\fIfg\fP\fB, int * \fP\fIbg\fP\fB);\fR
83 .br
84 \fBint extended_slk_color_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIpair\fP\fB);\fR
85 .sp
86 \fBvoid filter_sp(SCREEN* \fP\fIsp\fP\fB);\fR
87 .br
88 \fBint find_pair_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIfg\fP\fB, int \fP\fIbg\fP\fB);\fR
89 .br
90 \fBint flash_sp(SCREEN* \fP\fIsp\fP\fB);\fR
91 .br
92 \fBint flushinp_sp(SCREEN* \fP\fIsp\fP\fB);\fR
93 .br
94 \fBint free_pair_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIpair\fP\fB);\fR
95 .br
96 \fBint get_escdelay_sp(SCREEN* \fP\fIsp\fP\fB);\fR
97 .br
98 \fBint getmouse_sp(SCREEN* \fP\fIsp\fP\fB, MEVENT* \fP\fBevent\fP\fB);\fR
99 .br
100 \fBWINDOW* getwin_sp(SCREEN* \fP\fIsp\fP\fB, FILE* \fP\fIfilep\fP\fB);\fR
101 .br
102 \fBint halfdelay_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fItenths\fP\fB);\fR
103 .br
104 \fBbool has_colors_sp(SCREEN* \fP\fIsp\fP\fB);\fR
105 .sp
106 \fBbool has_ic_sp(SCREEN* \fP\fIsp\fP\fB);\fR
107 .br
108 \fBbool has_il_sp(SCREEN* \fP\fIsp\fP\fB);\fR
109 .br
110 \fBint has_key_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIch\fP\fB);\fR
111 .br
112 \fBbool has_mouse_sp(SCREEN* \fP\fIsp\fP\fB);\fR
113 .br
114 \fBint init_color_sp(SCREEN* \fP\fIsp\fP\fB, short \fP\fIcolor\fP\fB, short \fP\fIr\fP\fB, short \fP\fIg\fP\fB, short \fP\fIb\fP\fB);\fR
115 .br
116 \fBint init_extended_color_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIcolor\fP\fB, int \fP\fIr\fP\fB, int \fP\fIg\fP\fB, int \fP\fIb\fP\fB);\fR
117 .br
118 \fBint init_extended_pair_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIpair\fP\fB, int \fP\fIfg\fP\fB, int \fP\fIbg\fP\fB);\fR
119 .br
120 \fBint init_pair_sp(SCREEN* \fP\fIsp\fP\fB, short \fP\fIpair\fP\fB, short \fP\fIfg\fP\fB, short \fP\fIbg\fP\fB);\fR
121 .br
122 \fBint intrflush_sp(SCREEN* \fP\fIsp\fP\fB, WINDOW* \fP\fIwin\fP\fB, bool \fP\fIbf\fP\fB);\fR
123 .br
124 \fBbool is_term_resized_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlines\fP\fB, int \fP\fIcolumns\fP\fB);\fR
125 .sp
126 \fBbool isendwin_sp(SCREEN* \fP\fIsp\fP\fB);\fR
127 .br
128 \fBint key_defined_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIdefinition\fP\fB);\fR
129 .br
130 \fBchar* keybound_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIkeycode\fP\fB, int \fP\fIcount\fP\fB);\fR
131 .br
132 \fBNCURSES_CONST char * keyname_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIc\fP\fB);\fR
133 .br
134 \fBint keyok_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIkeycode\fP\fB, bool \fP\fIenable\fP\fB);\fR
135 .br
136 \fBchar killchar_sp(SCREEN* \fP\fIsp\fP\fB);\fR
137 .br
138 \fBint killwchar_sp(SCREEN* \fP\fIsp\fP\fB, wchar_t *\fP\fIch\fP\fB);\fR
139 .br
140 \fBchar* longname_sp(SCREEN* \fP\fIsp\fP\fB);\fR
141 .br
142 \fBint mcprint_sp(SCREEN* \fP\fIsp\fP\fB, char *\fP\fIdata\fP\fB, int \fP\fIlen\fP\fB);\fR
143 .br
144 \fBint mouseinterval_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIerval\fP\fB);\fR
145 .sp
146 \fBmmask_t mousemask_sp(SCREEN* \fP\fIsp\fP\fB, mmask_t \fP\fInewmask\fP\fB, mmask_t *\fP\fIoldmask\fP\fB);\fR
147 .br
148 \fBint mvcur_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIoldrow\fP\fB, int \fP\fIoldcol\fP\fB, int \fP\fInewrow\fP\fB, int \fP\fInewcol\fP\fB);\fR
149 .br
150 \fBint napms_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIms\fP\fB);\fR
151 .br
152 \fBWINDOW* newpad_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fInrows\fP\fB, int \fP\fIncols\fP\fB);\fR
153 .br
154 \fBSCREEN* new_prescr(void);\fR
155 .br
156 \fBSCREEN* newterm_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fItype\fP\fB, FILE *\fP\fIoutfd\fP\fB, FILE *\fP\fIinfd\fP\fB);\fR
157 .br
158 \fBWINDOW* newwin_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fInlines\fP\fB, int \fP\fIncols\fP\fB, int \fP\fIbegin_y\fP\fB, int \fP\fIbegin_x\fP\fB);\fR
159 .br
160 \fBint nl_sp(SCREEN* \fP\fIsp\fP\fB);\fR
161 .br
162 \fBint nocbreak_sp(SCREEN* \fP\fIsp\fP\fB);\fR
163 .br
164 \fBint noecho_sp(SCREEN* \fP\fIsp\fP\fB);\fR
165 .sp
166 \fBvoid nofilter_sp(SCREEN* \fP\fIsp\fP\fB);\fR
167 .br
168 \fBint nonl_sp(SCREEN* \fP\fIsp\fP\fB);\fR
169 .br
170 \fBvoid noqiflush_sp(SCREEN* \fP\fIsp\fP\fB);\fR
171 .br
172 \fBint noraw_sp(SCREEN* \fP\fIsp\fP\fB);\fR
173 .br
174 \fBint pair_content_sp(SCREEN* \fP\fIsp\fP\fB, short \fP\fIpair\fP\fB, short* \fP\fIfg\fP\fB, short* \fP\fIbg\fP\fB);\fR
175 .br
176 \fBvoid qiflush_sp(SCREEN* \fP\fIsp\fP\fB);\fR
177 .br
178 \fBint raw_sp(SCREEN* \fP\fIsp\fP\fB);\fR
179 .br
180 \fBint reset_prog_mode_sp(SCREEN* \fP\fIsp\fP\fB);\fR
181 .br
182 \fBvoid reset_color_pairs_sp(SCREEN* \fP\fIsp\fP\fB);\fR
183 .br
184 \fBint reset_shell_mode_sp(SCREEN* \fP\fIsp\fP\fB);\fR
185 .sp
186 \fBint resetty_sp(SCREEN* \fP\fIsp\fP\fB);\fR
187 .br
188 \fBint resize_term_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlines\fP\fB, int \fP\fIcolumns\fP\fB);\fR
189 .br
190 \fBint resizeterm_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlines\fP\fB, int \fP\fIcolumns\fP\fB);\fR
191 .br
192 \fBint ripoffline_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIline\fP\fB, int (*\fP\fIinit\fP\fB)(WINDOW* \fP\fIwin\fP\fB, int \fP\fIfmt\fP\fB));\fR
193 .br
194 \fBint savetty_sp(SCREEN* \fP\fIsp\fP\fB);\fR
195 .br
196 \fBint scr_init_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIfilename\fP\fB);\fR
197 .br
198 \fBint scr_restore_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIfilename\fP\fB);\fR
199 .br
200 \fBint scr_set_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIfilename\fP\fB);\fR
201 .br
202 \fBint set_escdelay_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIms\fP\fB);\fR
203 .br
204 \fBint set_tabsize_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIcols\fP\fB);\fR
205 .sp
206 \fBint slk_attr_set_sp(SCREEN* \fP\fIsp\fP\fB, const attr_t \fP\fIattrs\fP\fB, short \fP\fIpair\fP\fB, void*\fP\fIopts\fP\fB);\fR
207 .br
208 \fBint slk_attrset_sp(SCREEN* \fP\fIsp\fP\fB, const chtype \fP\fIa\fP\fB);\fR
209 .br
210 \fBint slk_attroff_sp(SCREEN* \fP\fIsp\fP\fB, const chtype \fP\fIa\fP\fB);\fR
211 .br
212 \fBint slk_attron_sp(SCREEN* \fP\fIsp\fP\fB, const chtype \fP\fIa\fP\fB);\fR
213 .br
214 \fBattr_t slk_attr_sp(SCREEN* \fP\fIsp\fP\fB);\fR
215 .br
216 \fBint slk_clear_sp(SCREEN* \fP\fIsp\fP\fB);\fR
217 .br
218 \fBint slk_color_sp(SCREEN* \fP\fIsp\fP\fB, short \fP\fIpair\fP\fB);\fR
219 .br
220 \fBint slk_init_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIfmt\fP\fB);\fR
221 .br
222 \fBchar* slk_label_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlabnum\fP\fB);\fR
223 .br
224 \fBint slk_noutrefresh_sp(SCREEN* \fP\fIsp\fP\fB);\fR
225 .sp
226 \fBint slk_refresh_sp(SCREEN* \fP\fIsp\fP\fB);\fR
227 .br
228 \fBint slk_restore_sp(SCREEN* \fP\fIsp\fP\fB);\fR
229 .br
230 \fBint slk_set_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlabnum\fP\fB, const char * \fP\fIlabel\fP\fB, int \fP\fIfmt\fP\fB);\fR
231 .br
232 \fBint slk_touch_sp(SCREEN* \fP\fIsp\fP\fB);\fR
233 .br
234 \fBint start_color_sp(SCREEN* \fP\fIsp\fP\fB);\fR
235 .br
236 \fBattr_t term_attrs_sp(SCREEN* \fP\fIsp\fP\fB);\fR
237 .br
238 \fBchtype termattrs_sp(SCREEN* \fP\fIsp\fP\fB);\fR
239 .br
240 \fBchar* termname_sp(SCREEN* \fP\fIsp\fP\fB);\fR
241 .br
242 \fBint typeahead_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIfd\fP\fB);\fR
243 .br
244 \fBint unget_wch_sp(SCREEN* \fP\fIsp\fP\fB, const wchar_t \fP\fIwch\fP\fB);\fR
245 .sp
246 \fBint ungetch_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIch\fP\fB);\fR
247 .br
248 \fBint ungetmouse_sp(SCREEN* \fP\fIsp\fP\fB,MEVENT * \fP\fBevent\fP\fB);\fR
249 .br
250 \fBint use_default_colors_sp(SCREEN* \fP\fIsp\fP\fB);\fR
251 .br
252 \fBvoid use_env_sp(SCREEN* \fP\fIsp\fP\fB, bool \fP\fIbf\fP\fB);\fR
253 .br
254 \fBint use_legacy_coding_sp(SCREEN* \fP\fIsp\fP\fB, int \fP\fIlevel\fP\fB);\fR
255 .br
256 \fBvoid use_tioctl_sp(SCREEN *\fP\fIsp\fP\fB, bool \fP\fIbf\fP\fB);\fR
257 .br
258 \fBint vid_attr_sp(SCREEN* \fP\fIsp\fP\fB, attr_t \fP\fIattrs\fP\fB, short \fP\fIpair\fP\fB, void * \fP\fIopts\fP\fB);\fR
259 .br
260 \fBint vid_puts_sp(SCREEN* \fP\fIsp\fP\fB, attr_t \fP\fIattrs\fP\fB, short \fP\fIpair\fP\fB, void * \fP\fIopts\fP\fB, NCURSES_SP_OUTC \fP\fIputc\fP\fB);\fR
261 .br
262 \fBint vidattr_sp(SCREEN* \fP\fIsp\fP\fB, chtype \fP\fIattrs\fP\fB);\fR
263 .br
264 \fBint vidputs_sp(SCREEN* \fP\fIsp\fP\fB, chtype \fP\fIattrs\fP\fB, NCURSES_SP_OUTC \fP\fIputc\fP\fB);\fR
265 .br
266 \fBwchar_t* wunctrl_sp(SCREEN* \fP\fIsp\fP\fB, cchar_t *\fP\fIch\fP\fB);\fR
267 .sp
268 \fB#include <form.h>\fR
269 .sp
270 \fBFORM* new_form_sp(SCREEN* \fP\fIsp\fP\fB, FIELD **\fP\fIfields\fP\fB);\fR
271 .sp
272 \fB#include <menu.h>\fR
273 .sp
274 \fBMENU* new_menu_sp(SCREEN* \fP\fIsp\fP\fB, ITEM **\fP\fIitems\fP\fB);\fR
275 .sp
276 \fB#include <panel.h>\fR
277 .sp
278 \fBPANEL* ceiling_panel(SCREEN* \fP\fIsp\fP\fB);\fR
279 .br
280 \fBPANEL* ground_panel(SCREEN* \fP\fIsp\fP\fB);\fR
281 .br
282 \fBvoid update_panels_sp(SCREEN* \fP\fIsp\fP\fB);\fR
283 .sp
284 \fB#include <term.h>\fR
285 .sp
286 \fBint del_curterm_sp(SCREEN* \fP\fIsp\fP\fB, TERMINAL *\fP\fIoterm\fP\fB);\fR
287 .br
288 \fBint putp_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIstr\fP\fB);\fR
289 .br
290 \fBint restartterm_sp(SCREEN* \fP\fIsp\fP\fB, NCURSES_CONST char*\fP\fIterm\fP\fB, int \fP\fIfiledes\fP\fB, int *\fP\fIerrret\fP\fB);\fR
291 .br
292 \fBTERMINAL* set_curterm_sp(SCREEN* \fP\fIsp\fP\fB, TERMINAL*\fP\fInterm\fP\fB);\fR
293 .br
294 \fBint tgetent_sp(SCREEN* \fP\fIsp\fP\fB, char *\fP\fIbp\fP\fB, const char *\fP\fIname\fP\fB);\fR
295 .br
296 \fBint tgetflag_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB);\fR
297 .br
298 \fBint tgetnum_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB);\fR
299 .br
300 \fBchar* tgetstr_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB, char **\fP\fIarea\fP\fB);\fR
301 .br
302 \fBchar* tgoto_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB, int \fP\fIcol\fP\fB, int \fP\fIrow\fP\fB);\fR
303 .br
304 \fBint tigetflag_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB);\fR
305 .br
306 \fBint tigetnum_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB);\fR
307 .br
308 \fBchar* tigetstr_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIcapname\fP\fB);\fR
309 .br
310 /* may instead use 9 long parameters */
311 .br
312 \fBchar* tparm_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIstr\fP\fB, ...);\fR
313 .br
314 \fBint tputs_sp(SCREEN* \fP\fIsp\fP\fB, const char *\fP\fIstr\fP\fB, int \fP\fIaffcnt\fP\fB, NCURSES_SP_OUTC \fP\fIputc\fP\fB);\fR
315 .sp
316 \fB#include <unctrl.h>\fR
317 .sp
318 \fBNCURSES_CONST char* unctrl_sp(SCREEN* \fP\fIsp\fP\fB, chtype \fP\fIc\fP\fB);\fR
319 .ad
320 .br
321 .SH DESCRIPTION
322 This implementation can be configured to provide a set of functions which
323 improve the ability to manage multiple screens.
324 This feature can be added to any of the configurations supported by ncurses;
325 it adds new entrypoints
326 without changing the meaning of any of the existing ones.
327 .PP
328 .\" ***************************************************************************
329 .SS IMPROVED FUNCTIONS
330 Most of the functions are new versions of existing functions.
331 A parameter is added at the front of the parameter list.
332 It is a SCREEN pointer.
333 .PP
334 The existing functions all use the current screen,
335 which is a static variable.
336 The extended functions use the specified screen,
337 thereby reducing the number of variables which must be modified
338 to update multiple screens.
339 .\" ***************************************************************************
340 .SS NEW FUNCTIONS
341 Here are the new functions:
342 .TP 5
343 ceiling_panel
344 this returns a pointer to the topmost panel in the given screen.
345 .TP 5
346 ground_panel
347 this returns a pointer to the lowest panel in the given screen.
348 .TP 5
349 new_prescr
350 when creating a new screen, the library uses static variables which
351 have been preset, e.g., by \fBuse_env\fP(3X), \fBfilter\fP(3X), etc.
352 With the screen-pointer extension,
353 there are situations where it must create a current screen before
354 the unextended library does.
355 The \fBnew_prescr\fP function is used internally to handle these cases.
356 It is also provided as an entrypoint to allow applications to customize
357 the library initialization.
358 .\" ***************************************************************************
359 .SH NOTES
360 This extension introduces some new names:
361 .TP 5
362 NCURSES_SP_FUNCS
363 This is set to the library patch-level number.
364 In the unextended library, this is zero (0),
365 to make it useful for checking if the extension is provided.
366 .TP 5
367 NCURSES_SP_NAME
368 The new functions are named using the macro \fINCURSES_SP_NAME\fP,
369 which hides the actual implementation.
370 Currently this adds a \*(``_sp\*('' suffix to the name of the unextended function.
371 This manual page indexes the extensions showing the full name.
372 However the proper usage of these functions uses the macro,
373 to provide for the possibility of changing the naming convention
374 for specific library configurations.
375 .TP 5
376 NCURSES_SP_OUTC
377 This is a new function-pointer type to use in the screen-pointer functions
378 where an \fINCURSES_OUTC\fP is used in the unextended library.
379 .TP 5
380 NCURSES_OUTC
381 This is a function-pointer type used for the cases where a function passes
382 characters to the output stream, e.g., \fBvidputs\fP(3X).
383 .PP
384 .SH PORTABILITY
385 These routines are specific to ncurses.
386 They were not supported on Version 7, BSD or System V implementations.
387 It is recommended that any code depending on ncurses extensions
388 be conditioned using \fINCURSES_SP_FUNCS\fP.
389 .SH SEE ALSO
390 \fBcurses\fR(3X),
391 \fBcurs_opaque\fR(3X),
392 \fBcurs_threads\fR(3X).