6429 SMB domain join doesn't work with libreSSL
[unleashed.git] / usr / src / lib / libcurses / screen / llib-lcurses
blobb1a0272a34950a1659193a55371c7aa53364683b
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /* LINTLIBRARY */
23 /* PROTOLIB1 */
26  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
27  * Use is subject to license terms.
28  */
30 #pragma ident   "%Z%%M% %I%     %E% SMI"
32 #include <stdio.h>
33 #include <sys/types.h>
34 #include <stdarg.h>
35 #include <curses.h>
36 #include "term.h"
37 #include "print.h"
40  * usr/src/lib/libcurses/screen
41  */
43 /* V2.__sscans.c */
44 int __sscans(WINDOW *win, char *fmt, ...);
46 /* V2._sprintw.c */
47 int _sprintw(WINDOW *win, char *fmt, ...);
49 /* V2.makenew.c */
50 WINDOW *makenew(int num_lines, int num_cols, int begy, int begx);
52 /* V3.m_addch.c */
53 int m_addch(int c);
55 /* V3.m_addstr.c */
56 int m_addstr(char *str);
58 /* V3.m_clear.c */
59 int m_clear(void);
61 /* V3.m_erase.c */
62 int m_erase(void);
64 /* V3.m_initscr.c */
65 WINDOW *m_initscr(void);
67 /* V3.m_move.c */
68 int m_move(int x, int y);
70 /* V3.m_newterm.c */
71 SCREEN *m_newterm(char *type, FILE *outfptr, FILE *infptr);
73 /* V3.m_refresh.c */
74 int m_refresh(void);
76 /* V3.upd_old_y.c */
77 void _update_old_y_area(WINDOW *win, int nlines, int ncols, int start_line,
78                                 int start_col);
80 /* _addch.c */
81 int addch(chtype ch);
83 /* _addchnstr.c */
84 int addchnstr(chtype *s, int n);
86 /* _addchstr.c */
87 int addchstr(chtype *s);
89 /* _addnstr.c */
90 int addnstr(char *s, int n);
92 /* _addnwstr.c */
93 int addnwstr(wchar_t *s, int n);
95 /* _addstr.c */
96 int addstr(char *s);
98 /* _addwch.c */
99 int addwch(chtype ch);
101 /* _addwchnstr.c */
102 int addwchnstr(chtype *str, int n);
104 /* _addwchstr.c */
105 int addwchstr(chtype *str);
107 /* _addwstr.c */
108 int addwstr(wchar_t *ws);
110 /* _attroff.c */
111 int attroff(chtype at);
113 /* _attron.c */
114 int attron(chtype at);
116 /* _attrset.c */
117 int attrset(chtype at);
119 /* _beep.c */
120 int beep(void);
122 /* _bkgd.c */
123 int bkgd(chtype c);
125 /* _bkgdset.c */
126 void bkgdset(chtype c);
128 /* _border.c */
129 int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr,
130                                 chtype bl, chtype br);
132 /* _clear.c */
133 int clear(void);
135 /* _clrtobot.c */
136 int clrtobot(void);
138 /* _clrtoeol.c */
139 int clrtoeol(void);
141 /* _crmode.c */
142 #undef  crmode
143 int crmode(void);
145 /* _del_curterm.c */
146 int del_curterm(TERMINAL *terminal);
148 /* _delch.c */
149 int delch(void);
151 /* _deleteln.c */
152 int deleteln(void);
154 /* _echo.c */
155 int echo(void);
157 /* _echochar.c */
158 int echochar(chtype ch);
160 /* _echowchar.c */
161 int echowchar(chtype ch);
163 /* _erase.c */
164 int erase(void);
166 /* _fixterm.c */
167 int fixterm(void);
169 /* _flash.c */
170 int flash(void);
172 /* _garbagdlins.c */
173 int garbagedlines(WINDOW  *win, int start, int finish);
175 /* _garbagedwin.c */
176 int garbagedwin(WINDOW  *win);
178 /* _getch.c */
179 int getch(void);
181 /* _getnwstr.c */
182 int getnwstr(wchar_t *ws, int n);
184 /* _getstr.c */
185 int getstr(char *str);
187 /* _getwch.c */
188 int getwch(void);
190 /* _getwstr.c */
191 int getwstr(wchar_t *ws);
193 /* _halfdelay.c */
194 int halfdelay(int tens);
196 /* _hline.c */
197 int hline(chtype horch, int num_chars);
199 /* _inch.c */
200 chtype inch(void);
202 /* _inchnstr.c */
203 int inchnstr(chtype *s, int n);
205 /* _inchstr.c */
206 int inchstr(chtype *s);
208 /* _innstr.c */
209 int innstr(char *s, int n);
211 /* _innwstr.c */
212 int innwstr(wchar_t *ws, int n);
214 /* _insch.c */
215 int insch(chtype c);
217 /* _insdelln.c */
218 int insdelln(int id);
220 /* _insertln.c */
221 int insertln(void);
223 /* _insnstr.c */
224 int insnstr(char *s, int n);
226 /* _insnwstr.c */
227 int insnwstr(wchar_t *ws, int n);
229 /* _insstr.c */
230 int insstr(char *s);
232 /* _instr.c */
233 int instr(char *s);
235 /* _inswch.c */
236 int inswch(chtype c);
238 /* _inswstr.c */
239 int inswstr(wchar_t *ws);
241 /* _intrflush.c */
242 int intrflush(WINDOW *win, int flag);
244 /* _inwch.c */
245 chtype inwch(void);
247 /* _inwchnstr.c */
248 int inwchnstr(chtype *str, int n);
250 /* _inwchstr.c */
251 int inwchstr(chtype *str);
253 /* _inwstr.c */
254 int inwstr(wchar_t *ws);
256 /* _meta.c */
257 int meta(WINDOW *win, int flag);
259 /* _move.c */
260 int move(int y, int x);
262 /* _mvaddch.c */
263 int mvaddch(int y, int x, chtype ch);
265 /* _mvaddchnstr.c */
266 int mvaddchnstr(int y, int x, chtype *s, int n);
268 /* _mvaddchstr.c */
269 int mvaddchstr(int y, int x, chtype *s);
271 /* _mvaddnstr.c */
272 int mvaddnstr(int y, int x, char *s, int n);
274 /* _mvaddnwstr.c */
275 int mvaddnwstr(int y, int x, wchar_t *ws, int n);
277 /* _mvaddstr.c */
278 int mvaddstr(int y, int x, char *str);
280 /* _mvaddwch.c */
281 int mvaddwch(int y, int x, chtype ch);
283 /* _mvaddwchnstr.c */
284 int mvaddwchnstr(int y, int x, chtype *str, int n);
286 /* _mvaddwchstr.c */
287 int mvaddwchstr(int y, int x, chtype *s);
289 /* _mvaddwstr.c */
290 int mvaddwstr(int y, int x, wchar_t *ws);
292 /* _mvdelch.c */
293 int mvdelch(int y, int x);
295 /* _mvgetch.c */
296 int mvgetch(int y, int x);
298 /* _mvgetnwstr.c */
299 int mvgetnwstr(int y, int x, wchar_t *ws, int n);
301 /* _mvgetstr.c */
302 int mvgetstr(int y, int x, char *str);
304 /* _mvgetwch.c */
305 int mvgetwch(int y, int x);
307 /* _mvgetwstr.c */
308 int mvgetwstr(int y, int x, wchar_t *ws);
310 /* _mvhline.c */
311 int mvhline(int y, int x, chtype ch, int n);
313 /* _mvinch.c */
314 chtype mvinch(int y, int x);
316 /* _mvinchnstr.c */
317 int mvinchnstr(int y, int x, chtype *str, int n);
319 /* _mvinchstr.c */
320 int mvinchstr(int y, int x, chtype *str);
322 /* _mvinnstr.c */
323 int mvinnstr(int y, int x, char *s, int n);
325 /* _mvinnwstr.c */
326 int mvinnwstr(int y, int x, wchar_t *ws, int n);
328 /* _mvinsch.c */
329 int mvinsch(int y, int x, chtype ch);
331 /* _mvinsnstr.c */
332 int mvinsnstr(int y, int x, char *s, int n);
334 /* _mvinsnwstr.c */
335 int mvinsnwstr(int y, int x, wchar_t *ws, int n);
337 /* _mvinsstr.c */
338 int mvinsstr(int y, int x, char *s);
340 /* _mvinstr.c */
341 int mvinstr(int y, int x, char *s);
343 /* _mvinswch.c */
344 int mvinswch(int y, int x, chtype ch);
346 /* _mvinswstr.c */
347 int mvinswstr(int y, int x, wchar_t *ws);
349 /* _mvinwch.c */
350 chtype mvinwch(int y, int x);
352 /* _mvinwchnstr.c */
353 int mvinwchnstr(int y, int x, chtype *str, int n);
355 /* _mvinwchstr.c */
356 int mvinwchstr(int y, int x, chtype *str);
358 /* _mvinwstr.c */
359 int mvinwstr(int y, int x, wchar_t *ws);
361 /* _mvvline.c */
362 int mvvline(int y, int x, chtype c, int n);
364 /* _mvwaddch.c */
365 int mvwaddch(WINDOW *win, int y, int x, chtype ch);
367 /* _mvwaddchnst.c */
368 int mvwaddchnstr(WINDOW *win, int y, int x, chtype *ch, int n);
370 /* _mvwaddchstr.c */
371 int mvwaddchstr(WINDOW *win, int y, int x, chtype *ch);
373 /* _mvwaddnstr.c */
374 int mvwaddnstr(WINDOW *win, int y, int x, char *c, int n);
376 /* _mvwaddnwstr.c */
377 int mvwaddnwstr(WINDOW *win, int y, int x, wchar_t *wc, int n);
379 /* _mvwaddstr.c */
380 int mvwaddstr(WINDOW *win, int y, int x, char *str);
382 /* _mvwaddwch.c */
383 int mvwaddwch(WINDOW *win, int y, int x, chtype ch);
385 /* _mvwaddwchnstr.c */
386 int mvwaddwchnstr(WINDOW *win, int y, int x, chtype *str, int n);
388 /* _mvwaddwchstr.c */
389 int mvwaddwchstr(WINDOW *win, int y, int x, chtype *str);
391 /* _mvwaddwstr.c */
392 int mvwaddwstr(WINDOW *win, int y, int x, wchar_t *wc);
394 /* _mvwdelch.c */
395 int mvwdelch(WINDOW *win, int y, int x);
397 /* _mvwgetch.c */
398 int mvwgetch(WINDOW *win, int y, int x);
400 /* _mvwgetnwstr.c */
401 int mvwgetnwstr(WINDOW *win, int y, int x, wchar_t *ws, int n);
403 /* _mvwgetstr.c */
404 int mvwgetstr(WINDOW *win, int y, int x, char *str);
406 /* _mvwgetwch.c */
407 int mvwgetwch(WINDOW *win, int y, int x);
409 /* _mvwgetwstr.c */
410 int mvwgetwstr(WINDOW *win, int y, int x, wchar_t *ws);
412 /* _mvwhline.c */
413 int mvwhline(WINDOW *win, int y, int x, chtype c, int n);
415 /* _mvwinch.c */
416 chtype mvwinch(WINDOW *win, int y, int x);
418 /* _mvwinchnst.c */
419 int mvwinchnstr(WINDOW *win, int y, int x, chtype *s, int n);
421 /* _mvwinchstr.c */
422 int mvwinchstr(WINDOW *win, int y, int x, chtype *str);
424 /* _mvwinnstr.c */
425 int mvwinnstr(WINDOW *win, int y, int x, char *str, int n);
427 /* _mvwinnwstr.c */
428 int mvwinnwstr(WINDOW *win, int y, int x, wchar_t *ws, int n);
430 /* _mvwinsch.c */
431 int mvwinsch(WINDOW *win, int y, int x, chtype c);
433 /* _mvwinsnstr.c */
434 int mvwinsnstr(WINDOW *win, int y, int x, char *str, int n);
436 /* _mvwinsnwstr.c */
437 int mvwinsnwstr(WINDOW *win, int y, int x, wchar_t *ws, int n);
439 /* _mvwinsstr.c */
440 int mvwinsstr(WINDOW *win, int y, int x, char *str);
442 /* _mvwinstr.c */
443 int mvwinstr(WINDOW *win, int y, int x, char *str);
445 /* _mvwinswch.c */
446 int mvwinswch(WINDOW *win, int y, int x, chtype c);
448 /* _mvwinswstr.c */
449 int mvwinswstr(WINDOW *win, int y, int x, wchar_t *ws);
451 /* _mvwinwch.c */
452 chtype mvwinwch(WINDOW *win, int y, int x);
454 /* _mvwinwchnstr.c */
455 int mvwinwchnstr(WINDOW *win, int y, int x, chtype *str, int n);
457 /* _mvwinwchstr.c */
458 int mvwinwchstr(WINDOW *win, int y, int x, chtype *str);
460 /* _mvwinwstr.c */
461 int mvwinwstr(WINDOW *win, int y, int x, wchar_t *ws);
463 /* _mvwvline.c */
464 int mvwvline(WINDOW *win, int y, int x, chtype c, int n);
466 /* _nl.c */
467 int nl(void);
469 /* _nocrmode.c */
470 #undef  nocrmode
471 int nocrmode(void);
473 /* _noecho.c */
474 int noecho(void);
476 /* _nonl.c */
477 int nonl(void);
479 /* _noqiflush.c */
480 void noqiflush(void);
482 /* _overlay.c */
483 int overlay(WINDOW *src, WINDOW *dst);
485 /* _overwrite.c */
486 int overwrite(WINDOW *src, WINDOW *dst);
488 /* _qiflush.c */
489 void qiflush(void);
491 /* _refresh.c */
492 int refresh(void);
494 /* _resetterm.c */
495 int resetterm(void);
497 /* _saveterm.c */
498 int saveterm(void);
500 /* _scr_init.c */
501 int scr_init(char *file);
503 /* _scr_restore.c */
504 int scr_restore(char *file);
506 /* _scr_set.c */
507 int scr_set(char *file);
509 /* _scrl.c */
510 int scrl(int n);
512 /* _scroll.c */
513 int scroll(WINDOW *win);
515 /* _set_curterm.c */
516 TERMINAL *set_curterm(TERMINAL *newterminal);
518 /* _set_term.c */
519 SCREEN *set_term(SCREEN *screen);
521 /* _setscrreg.c */
522 int setscrreg(int t, int b);
524 /* _slk_init.c */
525 int slk_init(int f);
527 /* _standend.c */
528 int standend(void);
530 /* _standout.c */
531 int standout(void);
533 /* _subpad.c */
534 WINDOW *subpad(WINDOW *win, int l, int nc, int by, int bx);
536 /* _timeout.c */
537 void timeout(int tm);
539 /* _touchline.c */
540 int touchline(WINDOW *win, int y, int n);
542 /* _unctrl.c */
543 char *unctrl(int ch);
545 /* _vline.c */
546 int vline(chtype vertch, int num_chars);
548 /* _waddchstr.c */
549 int waddchstr(WINDOW *win, chtype *str);
551 /* _waddstr.c */
552 int waddstr(WINDOW *win, char *str);
554 /* _waddwchstr.c */
555 int waddwchstr(WINDOW *win, chtype *str);
557 /* _waddwstr.c */
558 int waddwstr(WINDOW *win, wchar_t *ws);
560 /* _wclear.c */
561 int wclear(WINDOW *win);
563 /* _wdeleteln.c */
564 int wdeleteln(WINDOW *win);
566 /* _werase.c */
567 int werase(WINDOW *win);
569 /* _winsertln.c */
570 int winsertln(WINDOW *win);
572 /* _winsstr.c */
573 int winsstr(WINDOW *win, char *str);
575 /* _winswstr.c */
576 int winswstr(WINDOW *win, wchar_t *ws);
578 /* _winwchstr.c */
579 int winwchstr(WINDOW *win, chtype *str);
581 /* _wstandend.c */
582 int wstandend(WINDOW *win);
584 /* _wstandout.c */
585 int wstandout(WINDOW *win);
587 /* baudrate.c */
588 int baudrate(void);
590 /* can_change.c */
591 bool can_change_color(void);
593 /* cbreak.c */
594 int cbreak(void);
596 /* chkinput.c */
597 int _chkinput(void);
599 /* clearok.c */
600 int clearok(WINDOW *win, bool bf);
602 /* color_cont.c */
603 int color_content(short color, short *r, short *g, short *b);
605 /* copywin.c */
606 int copywin(WINDOW *Srcwin, WINDOW *Dstwin, int minRowSrc, int minColSrc,
607                         int minRowDst, int minColDst, int maxRowDst,
608                         int maxColDst, int over_lay);
610 /* curs_set.c */
611 int curs_set(int visibility);
613 /* curserr.c */
614 void curserr(void);
616 /* curses.c */
618 /* def_prog.c */
619 int def_prog_mode(void);
621 /* delay.c */
622 int _delay(int delay, int (*outc)(char));
624 /* delay_out.c */
625 int delay_output(int ms);
627 /* delkey.c */
628 int delkey(char *sends, int keyval);
630 /* delkeymap.c */
631 void delkeymap(TERMINAL *terminal);
633 /* delscreen.c */
634 void delscreen(SCREEN *screen);
636 /* delterm.c */
637 int delterm(TERMINAL *terminal);
639 /* delwin.c */
640 int delwin(WINDOW *win);
642 /* derwin.c */
643 WINDOW *derwin(WINDOW *win, int num_lines, int nc, int by, int bx);
645 /* doupdate.c */
646 int doupdate(void);
648 /* draino.c */
649 int draino(int ms);
651 /* dupwin.c */
652 WINDOW *dupwin(WINDOW *win);
654 /* endwin.c */
655 int isendwin(void);
656 int endwin(void);
657 int force_doupdate(void);
659 /* erasechar.c */
660 char erasechar(void);
662 /* flushinp.c */
663 int flushinp(void);
665 /* getattrs.c */
666 chtype getattrs(WINDOW *win);
668 /* getbegyx.c */
669 int getbegy(WINDOW *win);
670 int getbegx(WINDOW *win);
672 /* getbkgd.c */
673 chtype getbkgd(WINDOW *win);
675 /* getmaxyx.c */
676 int getmaxy(WINDOW *win);
677 int getmaxx(WINDOW *win);
679 /* getparyx.c */
680 int getpary(WINDOW *win);
681 int getparx(WINDOW *win);
683 /* getsyx.c */
684 int _getsyx(int *yp, int *xp);
686 /* gettmode.c */
687 int gettmode(void);
689 /* getwin.c */
690 WINDOW *getwin(FILE *filep);
692 /* getyx.c */
693 int getcury(WINDOW *win);
694 int getcurx(WINDOW *win);
696 /* has_colors.c */
697 bool has_colors(void);
699 /* has_ic.c */
700 int has_ic(void);
702 /* has_il.c */
703 int has_il(void);
705 /* idcok.c */
706 void idcok(WINDOW *win, bool bf);
708 /* idlok.c */
709 int idlok(WINDOW *win, bool bf);
711 /* immedok.c */
712 void immedok(WINDOW *win, bool bf);
714 /* init_acs.c */
715 int init_acs(void);
717 /* init_color.c */
718 int init_color(short color, short r, short g, short b);
720 /* init_costs.c */
721 void _init_costs(void);
722 int _countchar(void);
724 /* init_pair.c */
725 int init_pair(short pair, short f, short b);
726 void _init_HP_pair(short pair, short f, short b);
728 /* is_wintou.c */
729 int is_wintouched(WINDOW *win);
731 /* is_linetou.c */
732 int is_linetouched(WINDOW *win, int line);
734 /* keyname.c */
735 char *keyname(int key);
737 /* keypad.c */
738 int keypad(WINDOW *win, bool bf);
740 /* killchar.c */
741 char killchar(void);
743 /* leaveok.c */
744 int leaveok(WINDOW *win, bool bf);
746 /* longname.c */
747 char *longname(void);
749 /* makenew.c */
750 WINDOW *_makenew(int nlines, int ncols, int begy, int begx);
752 /* mbaddch.c */
753 int _mbclrch(WINDOW *win, int y, int x);
754 int _mbvalid(WINDOW *win);
755 int _mbaddch(WINDOW *win, chtype a, chtype b);
757 /* mbcharlen.c */
758 int mbcharlen(char *sp);
760 /* mbdisplen.c */
761 int mbdisplen(char *sp);
763 /* mbgetwidth.c */
764 void mbgetwidth(void);
765 int mbeucw(int c);
766 int mbscrw(int c);
767 int wcscrw(wchar_t wc);
769 /* mbinch.c */
770 char *wmbinch(WINDOW *win, int y, int x);
772 /* mbinsshift.c */
773 int _mbinsshift(WINDOW *win, int len);
775 /* mbmove.c */
776 int wmbmove(WINDOW *win, int y, int x);
778 /* mbstowcs.c */
779 size_t _curs_mbstowcs(wchar_t *pwcs, const char *s, size_t n);
781 /* mbtowc.c */
782 int _curs_mbtowc(wchar_t *wchar, const char *s, size_t n);
784 /* mbtranslate.c */
785 char *_strcode2byte(wchar_t *code, char *b, int n);
786 wchar_t *_strbyte2code(char *code, wchar_t *byte, int n);
788 /* memSset.c */
789 void memSset(chtype *s, chtype c, int n);
791 /* meta.c */
792 int _meta(int bf);
794 /* mouse.c */
795 int mouse_set(long mbe);
796 int mouse_on(long mbe);
797 int mouse_off(long mbe);
798 int request_mouse_pos(void);
799 void wmouse_position(WINDOW *win, int *x, int *y);
800 int map_button(unsigned long a);
801 unsigned long getmouse(void);
802 unsigned long getbmap(void);
804 /* mvcur.c */
805 int mvcur(int cury, int curx, int newy, int newx);
807 /* mvderwin.c */
808 int mvderwin(WINDOW *win, int pary, int parx);
810 /* mvprintw.c */
811 int mvprintw(int y, int x, ...);
813 /* mvscanw.c */
814 int mvscanw(int y, int x, ...);
816 /* mvwin.c */
817 int mvwin(WINDOW *win, int by, int bx);
819 /* mvwprintw.c */
820 int mvwprintw(WINDOW *win, int y, int x, ...);
822 /* mvwscanw.c */
823 int mvwscanw(WINDOW *win, int y, int x, ...);
825 /* napms.c */
826 int napms(int ms);
828 /* newkey.c */
829 int newkey(char *rcvchars, short keyval, bool macro);
831 /* newpad.c */
832 WINDOW *newpad(int l, int nc);
834 /* newscreen.c */
835 int filter(void);
836 SCREEN *newscreen(char *type, int lsize, int csize, int tabsize, FILE *outfptr,
837                         FILE *infptr);
839 /* newwin.c */
840 WINDOW *newwin(int nlines, int ncols, int by, int bx);
841 int _image(WINDOW *win);
843 /* nocbreak.c */
844 int nocbreak(void);
846 /* nodelay.c */
847 int nodelay(WINDOW *win, bool bf);
849 /* noraw.c */
850 int noraw(void);
852 /* notimeout.c */
853 int notimeout(WINDOW *win, bool bf);
855 /* outch.c */
856 int _outch(char c);
857 int _outwch(chtype c);
859 /* overlap.c */
860 int _overlap(WINDOW *Srcwin, WINDOW *Dstwin, int Overlay);
862 /* pair_cont.c */
863 int pair_content(short pair, short *f, short *b);
865 /* pechowchar.c */
866 int pechowchar(WINDOW *pad, chtype ch);
868 /* pnoutref.c */
869 int pnoutrefresh(WINDOW *pad, int pby, int pbx, int sby, int sbx,
870                                 int sey, int sex);
872 /* prefresh.c */
873 int prefresh(WINDOW *pad, int pminy, int pminx, int sminy, int sminx,
874                                 int smaxy, int smaxx);
875 int _prefresh(int (*func)(WINDOW *), WINDOW *pad, int pminy, int pminx,
876                         int sminy, int sminx, int smaxy, int smaxx);
877 int _padjust(WINDOW *pad, int pminy, int pminx, int sminy, int sminx,
878                                 int smaxy, int smaxx);
880 /* printw.c */
881 int printw(char *fmt, ...);
883 /* putwin.c */
884 int putwin(WINDOW *win, FILE *filep);
886 /* quick_echo.c */
887 int _quick_echo(WINDOW *win, chtype ch);
889 /* raw.c */
890 int raw(void);
892 /* redrawwin.c */
893 int redrawwin(WINDOW *win);
895 /* reset_sh.c */
896 int reset_shell_mode(void);
898 /* resetty.c */
899 int resetty(void);
901 /* restart.c */
902 int restartterm(char * term, int filenum, int *errret);
904 /* ring.c */
905 int _ring(bool bf);
907 /* ripoffline.c */
908 int ripoffline(int line, int (*init)(WINDOW *, int));
910 /* savetty.c */
911 int savetty(void);
913 /* scanw.c */
914 int scanw(char *fmt, ...);
916 /* scr_all.c */
917 int _scr_all(char *file, int which);
919 /* scr_dump.c */
920 int scr_dump(char *file);
922 /* scr_ll_dump.c */
923 int scr_ll_dump(FILE *filep);
925 /* scr_reset.c */
926 int scr_reset(FILE *filep, int type);
928 /* scrollok.c */
929 int scrollok(WINDOW *win, bool bf);
931 /* setcurscreen.c */
932 SCREEN *setcurscreen(SCREEN *new);
934 /* setcurterm.c */
935 TERMINAL *setcurterm(TERMINAL *newterminal);
937 /* setecho.c */
938 int _setecho(int bf);
940 /* setkeymap.c */
941 int setkeymap(void);
943 /* setnonl.c */
944 int _setnonl(int bf);
946 /* setqiflush.c */
947 void _setqiflush(int yes);
949 /* setsyx.c */
950 int setsyx(int y, int x);
952 /* setupterm.c */
953 int setupterm(char *term, int filenum, int *errret);
954 void _blast_keys(TERMINAL *terminal);
955 int reset_prog_mode(void);
956 int def_shell_mode(void);
958 /* slk_atroff.c */
959 int slk_attroff(chtype a);
961 /* slk_atron.c */
962 int slk_attron(chtype a);
964 /* slk_atrset.c */
965 int slk_attrset(chtype a);
967 /* slk_clear.c */
968 int slk_clear(void);
970 /* slk_label.c */
971 char *slk_label(int n);
973 /* slk_noutref.c */
974 int slk_noutrefresh(void);
976 /* slk_refresh.c */
977 int slk_refresh(void);
978 int _slk_update(void);
980 /* slk_restore.c */
981 int slk_restore(void);
983 /* slk_set.c */
984 int slk_set(int n, char *lab, int f);
986 /* slk_start.c */
987 int slk_start(int ng, int *gp);
989 /* slk_touch.c */
990 int slk_touch(void);
992 /* start_col.c */
993 int start_color(void);
995 /* subwin.c */
996 WINDOW *subwin(WINDOW *win, int l, int nc, int by, int bx);
998 /* syncok.c */
999 int syncok(WINDOW *win, bool bf);
1001 /* tcsearch.c */
1002 int _tcsearch(char *cap, short offsets[], char *names[], int size, int n);
1004 /* termattrs.c */
1005 chtype termattrs(void);
1007 /* termcap.c */
1008 int tgetent(char *bp, char *name);
1009 int tgetflag(char *tcstr);
1010 int tgetnum(char *tcstr);
1011 char *tgetstr(char *tcstr, char **area);
1013 /* termerr.c */
1014 void termerr(void);
1016 /* termname.c */
1017 char *termname(void);
1019 /* tgetch.c */
1020 int tgetch(int interpret);
1022 /* tgetwch.c */
1023 wchar_t tgetwch(int cntl);
1025 /* tgoto.c */
1026 char *tgoto(char *cap, int col, int row);
1028 /* tifget.c */
1029 int tifgetflag(char *tistr);
1030 int tifgetnum(char *tistr);
1031 char *tifgetstr(char *tistr);
1033 /* tifnames.c */
1035 /* tiget.c */
1036 int tigetflag(char *tistr);
1037 int tigetnum(char *tistr);
1038 char *tigetstr(char *tistr);
1040 /* tinames.c */
1042 /* tinputfd.c */
1043 void tinputfd(int fd);
1045 /* tnames.c */
1047 /* touchwin.c */
1048 int touchwin(WINDOW *win);
1050 /* tparm.c */
1051 char *tparm(char *instring, long fp1, long fp2, long p3, long p4, long p5,
1052                                         long p6, long p7, long p8, long p9);
1053 char *_branchto(char *cp, char to);
1055 /* tputs.c */
1056 int tputs(char *cp, int affcnt, int (*outc)(char));
1058 /* trace.c */
1059 int traceon(void);
1060 int traceoff(void);
1062 /* tstp.c */
1063 void _tstp(int dummy);
1064 void _ccleanup(int signo);
1066 /* ttimeout.c */
1067 int ttimeout(int delay);
1069 /* typeahead.c */
1070 int typeahead(int fd);
1072 /* unctrl.c */
1074 /* ungetch.c */
1075 int ungetch(int ch);
1077 /* ungetwch.c */
1078 int ungetwch(wchar_t code);
1080 /* untouchwin.c */
1081 int untouchwin(WINDOW *win);
1083 /* use_env.c */
1084 void use_env(int bf);
1086 /* vidupdate.c */
1087 void vidupdate(chtype newmode, chtype oldmode, int (*outc)(char));
1088 int _change_video(chtype newmode, chtype oldmode, int (*outc)(char),
1089                                         bool color_terminal);
1090 void _change_color(short newcolor, short oldcolor, int (*outc)(char));
1092 /* vsscanf.c */
1093 int _vsscanf(char *buf, char *fmt, va_list ap);
1095 /* vwprintw.c */
1096 int vwprintw(WINDOW *win, char *fmt, va_list ap);
1098 /* vwscanw.c */
1099 int vwscanw(WINDOW *win, char *fmt, va_list ap);
1101 /* waddchnstr.c */
1102 int waddchnstr(WINDOW *win, chtype *string, int ncols);
1104 /* waddnstr.c */
1105 int waddnstr(WINDOW *win, char *tstr, int i);
1107 /* waddnwstr.c */
1108 int waddnwstr(WINDOW *win, wchar_t *code, int n);
1110 /* waddwch.c */
1111 int waddwch(WINDOW *win, chtype c);
1113 /* waddwchnstr.c */
1114 int waddwchnstr(WINDOW *win, chtype *string, int ncols);
1116 /* wadjcurspos.c */
1117 int wadjcurspos(WINDOW *win);
1119 /* wbkgd.c */
1120 int wbkgd(WINDOW *win, chtype nbkgd);
1122 /* wbkgdset.c */
1123 void wbkgdset(WINDOW *win, chtype c);
1125 /* wborder.c */
1126 int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs,
1127                                 chtype tl, chtype tr, chtype bl, chtype br);
1129 /* wclrtobot.c */
1130 int wclrtobot(WINDOW *win);
1132 /* wclrtoeol.c */
1133 int wclrtoeol(WINDOW *win);
1135 /* wcstombs.c */
1136 size_t _curs_wcstombs(char *s, const wchar_t *pwcs, size_t n);
1138 /* wctomb.c */
1139 int _curs_wctomb(char *s, const wchar_t wchar);
1141 /* wdelch.c */
1142 int wdelch(WINDOW *win);
1144 /* wechowchar.c */
1145 int wechowchar(WINDOW *win, chtype ch);
1147 /* wgetch.c */
1148 int wgetch(WINDOW *win);
1150 /* wgetstr.c */
1151 int wgetstr(WINDOW *win, char *str);
1152 int wgetnstr(WINDOW *win, char *str, int n);
1154 /* wgetwch.c */
1155 int wgetwch(WINDOW *win);
1157 /* wgetwstr.c */
1158 int wgetwstr(WINDOW *win, wchar_t *str);
1159 int wgetnwstr(WINDOW *win, wchar_t *str, int n);
1161 /* whline.c */
1162 int whline(WINDOW *win, chtype ch, int num_chars);
1164 /* winch.c */
1165 chtype winch(WINDOW *win);
1167 /* winchnstr.c */
1168 int winchnstr(WINDOW *win, chtype *string, int ncols);
1170 /* winchstr.c */
1171 int winchstr(WINDOW *win, chtype *string);
1173 /* winnstr.c */
1174 int winnstr(WINDOW *win, char *string, int ncols);
1176 /* winnwstr.c */
1177 int winnwstr(WINDOW *win, wchar_t *wstr, int ncols);
1179 /* winsch.c */
1180 int winsch(WINDOW *win, chtype c);
1182 /* winsdelln.c */
1183 int winsdelln(WINDOW *win, int id);
1185 /* winsnstr.c */
1186 int winsnstr(WINDOW *win, char *tsp, int n);
1188 /* winsnwstr.c */
1189 int winsnwstr(WINDOW *win, wchar_t *code, int n);
1191 /* winstr.c */
1192 int winstr(WINDOW *win, char *str);
1194 /* winswch.c */
1195 int winswch(WINDOW *win, chtype c);
1197 /* winwch.c */
1198 chtype winwch(WINDOW *win);
1200 /* winwchnstr.c */
1201 int winwchnstr(WINDOW *win, chtype *string, int ncols);
1203 /* winwstr.c */
1204 int winwstr(WINDOW *win, wchar_t *wstr);
1206 /* wmove.c */
1207 int wmove(WINDOW *win, int y, int x);
1209 /* wmovenextch.c */
1210 int wmovenextch(WINDOW *win);
1212 /* wmoveprevch.c */
1213 int wmoveprevch(WINDOW *win);
1215 /* wnoutrefresh.c */
1216 int wnoutrefresh(WINDOW *win);
1218 /* wprintw.c */
1219 int wprintw(WINDOW *win, ...);
1221 /* wredrawln.c */
1222 int wredrawln(WINDOW *win, int begline, int numlines);
1224 /* wrefresh.c */
1225 int wrefresh(WINDOW *win);
1227 /* wscanw.c */
1228 int wscanw(WINDOW *win, ...);
1230 /* wscrl.c */
1231 int wscrl(WINDOW *win, int n);
1233 /* wsetscrreg.c */
1234 int wsetscrreg(WINDOW *win, int topy, int boty);
1236 /* wsyncdown.c */
1237 void wsyncdown(WINDOW *win);
1239 /* wsyncup.c */
1240 void wsyncup(WINDOW *win);
1241 void wcursyncup(WINDOW *win);
1243 /* wtimeout.c */
1244 void wtimeout(WINDOW *win, int tm);
1246 /* wtouchln.c */
1247 int wtouchln(WINDOW *win, int y, int n, int changed);
1249 /* wvline.c */
1250 int wvline(WINDOW *win, chtype vertch, int num_chars);
1252 /* _box.c */
1253 /* really box32 */
1254 int box(WINDOW *win, chtype v, chtype h);
1256 /* V3.box.c */
1257 #undef box
1258 int box(WINDOW *win, _ochtype v, _ochtype h);
1260 /* _newterm.c */
1261 /* really newterm32 */
1262 SCREEN *newterm(char *type, FILE *fout, FILE *fin);
1264 /* V3.newterm.c */
1265 #undef newterm
1266 SCREEN *newterm(char *type, FILE *outfptr, FILE *infptr);
1268 /* setterm.c */
1269 #undef  setterm
1270 int setterm(char *name);
1272 /* pechochar.c */
1273 /* really p32echochar */
1274 int pechochar(WINDOW *win, chtype c);
1276 /* V3.pechochar.c */
1277 #undef pechochar
1278 int pechochar(WINDOW *win, _ochtype c);
1280 /* waddch.c */
1281 /* really w32addch */
1282 int waddch(WINDOW *win, chtype c);
1284 /* V3.waddch.c */
1285 #undef waddch
1286 int waddch(WINDOW *win, _ochtype c);
1288 /* wattroff.c */
1289 /* really w32attroff */
1290 int wattroff(WINDOW *win, chtype attrs);
1292 /* V3.wattroff.c */
1293 #undef wattroff
1294 int wattroff(WINDOW *win, _ochtype attrs);
1296 /* wattron.c */
1297 /* really w32attron */
1298 int wattron(WINDOW *win, chtype attrs);
1300 /* V3.wattron.c */
1301 #undef wattron
1302 int wattron(WINDOW *win, _ochtype attrs);
1304 /* wattrset.c */
1305 /* really w32attrset */
1306 int wattrset(WINDOW *win, chtype attrs);
1308 /* V3.wattrset.c */
1309 #undef wattrset
1310 int wattrset(WINDOW *win, _ochtype attrs);
1312 /* wechochar.c */
1313 /* really w32echochar */
1314 int wechochar(WINDOW *win, chtype c);
1316 /* V3.wechochar.c */
1317 #undef wechochar
1318 int wechochar(WINDOW *win, _ochtype c);
1320 /* winsch.c */
1321 /* really w32insch */
1322 int winsch(WINDOW *win,  chtype c);
1324 /* V3.winsch.c */
1325 #undef winsch
1326 int winsch(WINDOW *win, _ochtype c);
1328 /* putp.c */
1329 int _outchar(char ch);
1330 int putp(char *str);
1331 /* really vid32attr */
1332 int vidattr(chtype newmode);
1334 /* V3.vidattr.c */
1335 #undef vidattr
1336 int vidattr(_ochtype a);
1338 /* vidputs.c */
1339 /* really vid32puts */
1340 int vidputs(chtype a, int (*b)(char));
1342 /* V3.vidputs.c */
1343 #undef vidputs
1344 int vidputs(_ochtype a, int (*o)(char));
1346 /* initscr.c */
1347 /* really initscr32 */
1348 WINDOW *initscr(void);
1350 /* V3.initscr.c */
1351 #undef initscr
1352 WINDOW *initscr(void);