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
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]
26 * Copyright (c) 1996, by Sun Microsystems, Inc.
27 * All rights reserved.
30 #ident "%Z%%M% %I% %E% SMI"
36 * lib/libxcurses/src/libc/xcurses routines
42 int add_wch(const cchar_t *);
43 int mvadd_wch(int, int, const cchar_t *);
44 int mvwadd_wch(WINDOW *, int, int, const cchar_t *);
50 int mvaddch(int, int, chtype);
51 int mvwaddch(WINDOW *, int, int, chtype);
56 int addchnstr(const chtype *, int);
57 int mvaddchnstr(int, int, const chtype *, int);
58 int mvwaddchnstr(WINDOW *, int, int, const chtype *, int);
59 int addchstr(const chtype *);
60 int mvaddchstr(int, int, const chtype *);
61 int mvwaddchstr(WINDOW *, int, int, const chtype *);
62 int waddchstr(WINDOW *, const chtype *);
67 int addnstr(const char *, int);
68 int mvaddnstr(int, int, const char *, int);
69 int mvwaddnstr(WINDOW *, int, int, const char *, int);
70 int addstr(const char *);
71 int mvaddstr(int, int, const char *);
72 int mvwaddstr(WINDOW *, int, int, const char *);
73 int waddstr(WINDOW *, const char *);
78 int addnwstr(const wchar_t *, int);
79 int mvaddnwstr(int, int, const wchar_t *, int);
80 int mvwaddnwstr(WINDOW *, int, int, const wchar_t *, int);
81 int addwstr(const wchar_t *);
82 int mvaddwstr(int, int, const wchar_t *);
83 int mvwaddwstr(WINDOW *, int, int, const wchar_t *);
84 int waddwstr(WINDOW *, const wchar_t *);
89 int add_wchnstr(const cchar_t *, int);
90 int mvadd_wchnstr(int, int, const cchar_t *, int);
91 int mvwadd_wchnstr(WINDOW *, int, int, const cchar_t *, int);
92 int add_wchstr(const cchar_t *);
93 int mvadd_wchstr(int, int, const cchar_t *);
94 int mvwadd_wchstr(WINDOW *, int, int, const cchar_t *);
95 int wadd_wchstr(WINDOW *, const cchar_t *);
100 int attr_on(attr_t, void *);
101 int attr_off(attr_t, void *);
102 int attr_set(attr_t, short, void *);
103 int color_set(short, void *);
104 int attr_get(attr_t *, short *, void *);
114 chtype COLOR_PAIR(short);
115 short PAIR_NUMBER(chtype);
132 int wbkgd(WINDOW *, chtype);
138 int wbkgdset(WINDOW *, chtype);
139 chtype getbkgd(WINDOW *);
144 int bkgrnd(const cchar_t *);
149 void bkgrndset(const cchar_t *);
150 void wbkgrndset(WINDOW *, const cchar_t *);
151 int getbkgrnd(cchar_t *);
152 int wgetbkgrnd(WINDOW *, cchar_t *);
157 int box(WINDOW *, chtype, chtype);
162 int box_set(WINDOW *, const cchar_t *, const cchar_t *);
167 int border(chtype, chtype, chtype, chtype, chtype, chtype, chtype, chtype);
172 int border_set(const cchar_t *, const cchar_t *,
173 const cchar_t *, const cchar_t *,
174 const cchar_t *, const cchar_t *,
175 const cchar_t *, const cchar_t *);
189 int chgat(int, attr_t, short, const void *);
190 int mvchgat(int, int, int, attr_t, short, const void *);
191 int mvwchgat(WINDOW *, int, int, int, attr_t, short, const void *);
202 int clearok(WINDOW *, bool);
203 void immedok(WINDOW *, bool);
204 int leaveok(WINDOW *, bool);
205 int notimeout(WINDOW *, bool);
206 int scrollok(WINDOW *, bool);
221 int start_color(void);
222 int init_color(short, short, short, short);
223 int init_pair(short, short, short);
224 int color_content(short, short *, short *, short *);
225 int pair_content(short, short *, short *);
230 int copywin(const WINDOW *, WINDOW *, int, int, int, int, int, int, int);
240 int delay_output(int);
246 int mvdelch(int, int);
247 int mvwdelch(WINDOW *, int, int);
255 int wdeleteln(WINDOW *);
256 int winsertln(WINDOW *);
262 void idcok(WINDOW *, bool);
263 int idlok(WINDOW *, bool);
268 WINDOW *dupwin(WINDOW *);
273 int echo_wchar(const cchar_t *);
274 int wecho_wchar(WINDOW *, const cchar_t *);
279 int echochar(chtype);
280 int wechochar(WINDOW *, chtype);
295 int get_wch(wint_t *);
296 int mvget_wch(int , int, wint_t *);
297 int mvwget_wch(WINDOW *, int, int, wint_t *);
302 int getcchar(const cchar_t *, wchar_t *, attr_t *, short *, void *);
308 int mvgetch(int, int);
309 int mvwgetch(WINDOW *, int, int);
314 int getn_wstr(wint_t *, int);
315 int mvgetn_wstr(int, int, wint_t *, int);
316 int mvwgetn_wstr(WINDOW *, int, int, wint_t *, int);
317 int get_wstr(wint_t *);
318 int mvget_wstr(int, int, wint_t *);
319 int mvwget_wstr(WINDOW *, int, int, wint_t *);
320 int wget_wstr(WINDOW *, wint_t *);
325 int getnstr(char *, int);
326 int mvgetnstr(int, int, char *, int);
327 int mvwgetnstr(WINDOW *, int, int, char *, int);
329 int mvgetstr(int, int, char *);
330 int mvwgetstr(WINDOW *, int, int, char *);
331 int wgetstr(WINDOW *, char *);
336 WINDOW *getwin(FILE *);
337 int putwin(WINDOW *, FILE *);
342 bool has_colors(void);
345 bool can_change_color(void);
350 int hline(chtype, int);
351 int mvhline(int, int, chtype, int);
352 int mvwhline(WINDOW *, int, int, chtype, int);
353 int vline(chtype, int);
354 int mvvline(int, int, chtype, int);
355 int mvwvline(WINDOW *, int, int, chtype, int);
360 int hline_set(const cchar_t *, int);
361 int mvhline_set(int, int, const cchar_t *, int);
362 int mvwhline_set(WINDOW *, int, int, const cchar_t *, int);
363 int vline_set(const cchar_t *, int);
364 int mvvline_set(int, int, const cchar_t *, int);
365 int mvwvline_set(WINDOW *, int, int, const cchar_t *, int);
370 int in_wch(cchar_t *);
371 int mvin_wch(int, int, cchar_t *);
372 int mvwin_wch(WINDOW *, int, int, cchar_t *);
377 int in_wchnstr(cchar_t *, int);
378 int mvin_wchnstr(int, int, cchar_t *, int);
379 int mvwin_wchnstr(WINDOW *, int, int, cchar_t *, int);
380 int in_wchstr(cchar_t *);
381 int mvin_wchstr(int, int, cchar_t *);
382 int mvwin_wchstr(WINDOW *, int, int, cchar_t *);
383 int win_wchstr(WINDOW *, cchar_t *);
389 chtype mvinch(int, int);
390 chtype mvwinch(WINDOW *, int, int);
395 int inchnstr(chtype *, int);
396 int mvinchnstr(int, int, chtype *, int);
397 int mvwinchnstr(WINDOW *, int, int, chtype *, int);
398 int inchstr(chtype *);
399 int mvinchstr(int, int, chtype *);
400 int mvwinchstr(WINDOW *, int, int, chtype *);
401 int winchstr(WINDOW *, chtype *);
406 WINDOW *initscr(void);
411 int innstr(char *, int);
412 int mvinnstr(int, int, char *, int);
413 int mvwinnstr(WINDOW *, int, int, char *, int);
415 int mvinstr(int, int, char *);
416 int mvwinstr(WINDOW *, int, int, char *);
417 int winstr(WINDOW *, char *);
422 int innwstr(wchar_t *, int);
423 int mvinnwstr(int, int, wchar_t *, int);
424 int mvwinnwstr(WINDOW *, int, int, wchar_t *, int);
425 int inwstr(wchar_t *);
426 int mvinwstr(int, int, wchar_t *);
427 int mvwinwstr(WINDOW *, int, int, wchar_t *);
428 int winwstr(WINDOW *, wchar_t *);
433 int ins_nwstr(const wchar_t *, int);
434 int mvins_nwstr(int, int, const wchar_t *, int);
435 int mvwins_nwstr(WINDOW *, int, int, const wchar_t *, int);
436 int ins_wstr(const wchar_t *);
437 int mvins_wstr(int, int, const wchar_t *);
438 int mvwins_wstr(WINDOW *, int, int, const wchar_t *);
439 int wins_wstr(WINDOW *, const wchar_t *);
444 int ins_wch(const cchar_t *);
445 int mvins_wch(int, int, const cchar_t *);
446 int mvwins_wch(WINDOW *, int, int, const cchar_t *);
452 int mvinsch(int, int, chtype);
453 int mvwinsch(WINDOW *, int, int, chtype);
458 int insnstr(const char *, int);
459 int mvinsnstr(int, int, const char *, int);
460 int mvwinsnstr(WINDOW *, int, int, const char *, int);
461 int insstr(const char *);
462 int mvinsstr(int, int, const char *);
463 int mvwinsstr(WINDOW *, int, int, const char *);
464 int winsstr(WINDOW *, const char *);
469 int intrflush(WINDOW *, bool);
479 const char *key_name(wchar_t);
484 const char *keyname(int);
489 int keypad(WINDOW *, bool);
500 int erasewchar(wchar_t *);
501 int killwchar(wchar_t *);
506 char *longname(void);
507 char *termname(void);
512 int meta(WINDOW *, bool);
522 int mvcur(int, int, int, int);
527 int mvwin(WINDOW *, int, int);
528 int mvderwin(WINDOW *, int, int);
538 WINDOW *newpad(int, int);
539 WINDOW *subpad(WINDOW *, int, int, int, int);
546 int ripoffline(int, int (*)(WINDOW *, int));
547 SCREEN *newterm(char *, FILE *, FILE *);
548 void delscreen(SCREEN *);
549 SCREEN *set_term(SCREEN *);
555 int delwin(WINDOW *);
556 WINDOW *derwin(WINDOW *, int, int, int, int);
557 WINDOW *newwin(int, int, int, int);
558 WINDOW *subwin(WINDOW *, int, int, int, int);
575 int overlay(const WINDOW *, WINDOW *);
576 int overwrite(const WINDOW *, WINDOW *);
581 int pecho_wchar(WINDOW *, const cchar_t *);
586 int pechochar(WINDOW *, chtype);
591 int prefresh(WINDOW *, int, int, int, int, int, int);
592 int pnoutrefresh(WINDOW *, int, int, int, int, int, int);
597 int printw(const char *, ...);
598 int mvprintw(int, int, const char *, ...);
599 int mvwprintw(WINDOW *, int, int, const char *, ...);
600 int wprintw(WINDOW *, const char *, ...);
606 void noqiflush(void);
611 int redrawwin(WINDOW *);
627 int scanw(const char *, ...);
628 int mvscanw(int, int, const char *, ...);
629 int mvwscanw(WINDOW *, int, int, const char *, ...);
630 int wscanw(WINDOW *, const char *, ...);
635 int scr_dump(const char *);
636 int scr_restore(const char *);
637 int scr_init(const char *);
638 int scr_set(const char *);
643 int scroll(WINDOW *);
649 int setscrreg(int, int);
654 int setcchar(cchar_t *, const wchar_t *, attr_t, short, const void *);
660 int setupterm(const char *, int, int *);
661 int del_curterm(TERMINAL *);
662 TERMINAL *set_curterm(TERMINAL *);
663 int restartterm(const char *, int, int *);
664 int def_shell_mode(void);
665 int def_prog_mode(void);
666 int reset_shell_mode(void);
667 int reset_prog_mode(void);
673 int slk_attron(const chtype);
674 int slk_attroff(const chtype);
675 int slk_attrset(const chtype);
676 int slk_attr_off(const attr_t, void *);
677 int slk_attr_on(const attr_t, void *);
678 int slk_attr_set(const attr_t, short, void *);
679 int slk_color(short);
682 int slk_restore(void);
683 int slk_noutrefresh(void);
684 int slk_refresh(void);
685 char *slk_label(int);
686 int slk_set(int, const char *, int);
687 int slk_wset(int, const wchar_t *, int);
688 int slk_color_set(short);
693 chtype termattrs(void);
694 attr_t term_attrs(void);
699 int tgetent(char *, char *);
704 int tgetflag(const char *);
709 int tgetnum(const char *);
714 char *tgetstr(const char *, char **);
719 char *tgoto(const char *, int, int);
724 int tigetflag(const char *);
729 int tigetnum(const char *);
734 char *tigetstr(const char *);
739 int nodelay(WINDOW *, bool);
745 bool is_linetouched(WINDOW *, int);
746 bool is_wintouched(WINDOW *);
751 int touchwin(WINDOW *);
752 int untouchwin(WINDOW *);
753 int touchline(WINDOW *, int, int);
758 const char *unctrl(chtype);
763 int vid_attr(attr_t, short, void *);
768 int vid_puts(attr_t, short, void *, int (*)(int));
774 int vidputs(chtype, int (*)(int));
779 int vw_printw(WINDOW *, const char *, void *);
784 int vw_scanw(WINDOW *, const char *, void *);
789 int vwprintw(WINDOW *, const char *, void *);
794 int vwscanw(WINDOW *, const char *, void *);
799 int wadd_wch(WINDOW *, const cchar_t *);
804 int waddch(WINDOW *, chtype);
809 int waddchnstr(WINDOW *, const chtype *, int);
814 int waddnstr(WINDOW *, const char *, int);
819 int waddnwstr(WINDOW *, const wchar_t *, int);
824 int wadd_wchnstr(WINDOW *, const cchar_t *, int);
829 int wattr_on(WINDOW *, attr_t, void *);
830 int wattr_off(WINDOW *, attr_t, void *);
831 int wattr_set(WINDOW *, attr_t, short, void *);
832 int wattr_get(WINDOW *, attr_t *, short *, void *);
833 int wcolor_set(WINDOW *, short, void *);
834 int wstandout(WINDOW *);
835 int wstandend(WINDOW *);
840 int wattron(WINDOW *, int);
841 int wattroff(WINDOW *, int);
842 int wattrset(WINDOW *, int);
847 int wbkgrnd(WINDOW *, const cchar_t *);
852 int wborder(WINDOW *, chtype, chtype, chtype, chtype,
853 chtype, chtype, chtype, chtype);
858 int wborder_set(WINDOW *, const cchar_t *, const cchar_t *,
859 const cchar_t *, const cchar_t *, const cchar_t *, const cchar_t *,
860 const cchar_t *, const cchar_t *);
865 int wchgat(WINDOW *, int, attr_t, short, const void *);
870 int wclear(WINDOW *);
871 int werase(WINDOW *);
876 int wclrtobot(WINDOW *);
881 int wclrtoeol(WINDOW *);
886 int wdelch(WINDOW *);
891 int unget_wch(const wchar_t);
892 int wget_wch(WINDOW *, wint_t *);
898 int wgetch(WINDOW *);
903 int wgetnstr(WINDOW *, char *, int);
904 int wgetn_wstr(WINDOW *, wint_t *, int);
909 int whline(WINDOW *, chtype, int);
910 int wvline(WINDOW *, chtype, int);
915 int whline_set(WINDOW *, const cchar_t *, int);
916 int wvline_set(WINDOW *, const cchar_t *, int);
921 int win_wch(WINDOW *, cchar_t *);
926 int win_wchnstr(WINDOW *, cchar_t *, int);
931 chtype winch(WINDOW *);
936 int winchnstr(WINDOW *, chtype *, int);
941 int winnstr(WINDOW *, char *, int);
946 int winnwstr(WINDOW *, wchar_t *, int);
951 int wins_nwstr(WINDOW *, const wchar_t *, int);
956 int wins_wch(WINDOW *, const cchar_t *);
961 int winsch(WINDOW *, chtype);
966 int winsdelln(WINDOW *, int);
971 int winsnstr(WINDOW *, const char *, int);
976 int wmove(WINDOW *, int, int);
981 int wredrawln(WINDOW *, int, int);
986 int wrefresh(WINDOW *);
987 int wnoutrefresh(WINDOW *);
992 int wscrl(WINDOW *, int);
997 int wsetscrreg(WINDOW *, int, int);
1002 void wsyncdown(WINDOW *);
1007 int syncok(WINDOW *, bool);
1008 void wsyncup(WINDOW *);
1009 void wcursyncup(WINDOW *);
1014 void wtimeout(WINDOW *, int);
1019 int wtouchln(WINDOW *, int, int, int);
1024 const wchar_t *wunctrl(const cchar_t *);