1 /* $NetBSD: curses_commands.h,v 1.3 2011/09/15 11:46:19 blymn Exp $ */ 2 3 /*- 4 * Copyright 2009 Brett Lymn <blymn@NetBSD.org> 5 * 6 * All rights reserved. 7 * 8 * This code has been donated to The NetBSD Foundation by the Author. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. The name of the author may not be used to endorse or promote products 16 * derived from this software withough specific prior written permission 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * 30 */ 31 32 #ifndef _CURSES_COMMANDS_H_ 33 #define _CURSES_COMMANDS_H_ 34 35 struct command_def { 36 const char *name; 37 void (*func)(int, char **); 38 }; 39 40 /* 41 * prototypes for test commands 42 */ 43 void cmd_DRAIN(int, char **); /* not a curses function */ 44 45 void cmd_addbytes(int, char **); 46 void cmd_addch(int, char **); 47 void cmd_addchnstr(int, char **); 48 void cmd_addchstr(int, char **); 49 void cmd_addnstr(int, char **); 50 void cmd_addstr(int, char **); 51 void cmd_attr_get(int, char **); 52 void cmd_attr_off(int, char **); 53 void cmd_attr_on(int, char **); 54 void cmd_attr_set(int, char **); 55 void cmd_attroff(int, char **); 56 void cmd_attron(int, char **); 57 void cmd_attrset(int, char **); 58 void cmd_bkgd(int, char **); 59 void cmd_bkgdset(int, char **); 60 void cmd_border(int, char **); 61 void cmd_clear(int, char **); 62 void cmd_clrtobot(int, char **); 63 void cmd_clrtoeol(int, char **); 64 void cmd_color_set(int, char **); 65 void cmd_delch(int, char **); 66 void cmd_deleteln(int, char **); 67 void cmd_echochar(int, char **); 68 void cmd_erase(int, char **); 69 void cmd_getch(int, char **); 70 void cmd_getnstr(int, char **); 71 void cmd_getstr(int, char **); 72 void cmd_inch(int, char **); 73 void cmd_inchnstr(int, char **); 74 void cmd_inchstr(int, char **); 75 void cmd_innstr(int, char **); 76 void cmd_insch(int, char **); 77 void cmd_insdelln(int, char **); 78 void cmd_insertln(int, char **); 79 void cmd_instr(int, char **); 80 void cmd_move(int, char **); 81 void cmd_refresh(int, char **); 82 void cmd_scrl(int, char **); 83 void cmd_setscrreg(int, char **); 84 void cmd_standend(int, char **); 85 void cmd_standout(int, char **); 86 void cmd_timeout(int, char **); 87 void cmd_underscore(int, char **); 88 void cmd_underend(int, char **); 89 void cmd_waddbytes(int, char **); 90 void cmd_waddstr(int, char **); 91 void cmd_mvaddbytes(int, char **); 92 void cmd_mvaddch(int, char **); 93 void cmd_mvaddchnstr(int, char **); 94 void cmd_mvaddchstr(int, char **); 95 void cmd_mvaddnstr(int, char **); 96 void cmd_mvaddstr(int, char **); 97 void cmd_mvdelch(int, char **); 98 void cmd_mvgetch(int, char **); 99 void cmd_mvgetnstr(int, char **); 100 void cmd_mvgetstr(int, char **); 101 void cmd_mvinch(int, char **); 102 void cmd_mvinchnstr(int, char **); 103 void cmd_mvinchstr(int, char **); 104 void cmd_mvinnstr(int, char **); 105 void cmd_mvinsch(int, char **); 106 void cmd_mvinstr(int, char **); 107 108 void cmd_mvwaddbytes(int, char **); 109 void cmd_mvwaddch(int, char **); 110 void cmd_mvwaddchnstr(int, char **); 111 void cmd_mvwaddchstr(int, char **); 112 void cmd_mvwaddnstr(int, char **); 113 void cmd_mvwaddstr(int, char **); 114 void cmd_mvwdelch(int, char **); 115 void cmd_mvwgetch(int, char **); 116 void cmd_mvwgetnstr(int, char **); 117 void cmd_mvwgetstr(int, char **); 118 void cmd_mvwinch(int, char **); 119 void cmd_mvwinsch(int, char **); 120 void cmd_assume_default_colors(int, char **); 121 void cmd_baudrate(int, char **); 122 void cmd_beep(int, char **); 123 void cmd_box(int, char **); 124 void cmd_can_change_color(int, char **); 125 void cmd_cbreak(int, char **); 126 void cmd_chgat(int, char **); 127 void cmd_clearok(int, char **); 128 void cmd_color_content(int, char **); 129 void cmd_copywin(int, char **); 130 void cmd_curs_set(int, char **); 131 void cmd_def_prog_mode(int, char **); 132 void cmd_def_shell_mode(int, char **); 133 void cmd_define_key(int, char **); 134 void cmd_delay_output(int, char **); 135 void cmd_delscreen(int, char **); 136 void cmd_delwin(int, char **); 137 void cmd_derwin(int, char **); 138 void cmd_dupwin(int, char **); 139 void cmd_doupdate(int, char **); 140 void cmd_echo(int, char **); 141 void cmd_endwin(int, char **); 142 void cmd_erasechar(int, char **); 143 void cmd_flash(int, char **); 144 void cmd_flushinp(int, char **); 145 void cmd_flushok(int, char **); 146 void cmd_fullname(int, char **); 147 void cmd_getattrs(int, char **); 148 void cmd_getbkgd(int, char **); 149 void cmd_getcury(int, char **); 150 void cmd_getcurx(int, char **); 151 void cmd_getyx(int, char **); 152 void cmd_getbegy(int, char **); 153 void cmd_getbegx(int, char **); 154 void cmd_getmaxy(int, char **); 155 void cmd_getmaxx(int, char **); 156 void cmd_getpary(int, char **); 157 void cmd_getparx(int, char **); 158 void cmd_getparyx(int, char **); 159 void cmd_gettmode(int, char **); 160 void cmd_getwin(int, char **); 161 void cmd_halfdelay(int, char **); 162 void cmd_has_colors(int, char **); 163 void cmd_has_ic(int, char **); 164 void cmd_has_il(int, char **); 165 void cmd_hline(int, char **); 166 void cmd_idcok(int, char **); 167 void cmd_idlok(int, char **); 168 void cmd_init_color(int, char **); 169 void cmd_init_pair(int, char **); 170 void cmd_initscr(int, char **); 171 void cmd_intrflush(int, char **); 172 void cmd_isendwin(int, char **); 173 void cmd_is_linetouched(int, char **); 174 void cmd_is_wintouched(int, char **); 175 void cmd_keyok(int, char **); 176 void cmd_keypad(int, char **); 177 void cmd_keyname(int, char **); 178 void cmd_killchar(int, char **); 179 void cmd_leaveok(int, char **); 180 void cmd_meta(int, char **); 181 void cmd_mvchgat(int, char **); 182 void cmd_mvcur(int, char **); 183 void cmd_mvderwin(int, char **); 184 void cmd_mvhline(int, char **); 185 void cmd_mvprintw(int, char **); 186 void cmd_mvscanw(int, char **); 187 void cmd_mvvline(int, char **); 188 void cmd_mvwchgat(int, char **); 189 void cmd_mvwhline(int, char **); 190 void cmd_mvwvline(int, char **); 191 void cmd_mvwin(int, char **); 192 void cmd_mvwinchnstr(int, char **); 193 void cmd_mvwinchstr(int, char **); 194 void cmd_mvwinnstr(int, char **); 195 void cmd_mvwinstr(int, char **); 196 void cmd_mvwprintw(int, char **); 197 void cmd_mvwscanw(int, char **); 198 void cmd_napms(int, char **); 199 void cmd_newpad(int, char **); 200 void cmd_newterm(int, char **); 201 void cmd_newwin(int, char **); 202 void cmd_nl(int, char **); 203 void cmd_no_color_attributes(int, char **); 204 void cmd_nocbreak(int, char **); 205 void cmd_nodelay(int, char **); 206 void cmd_noecho(int, char **); 207 void cmd_nonl(int, char **); 208 void cmd_noqiflush(int, char **); 209 void cmd_noraw(int, char **); 210 void cmd_notimeout(int, char **); 211 void cmd_overlay(int, char **); 212 void cmd_overwrite(int, char **); 213 void cmd_pair_content(int, char **); 214 void cmd_pechochar(int, char **); 215 void cmd_pnoutrefresh(int, char **); 216 void cmd_prefresh(int, char **); 217 void cmd_printw(int, char **); 218 void cmd_putwin(int, char **); 219 void cmd_qiflush(int, char **); 220 void cmd_raw(int, char **); 221 void cmd_redrawwin(int, char **); 222 void cmd_reset_prog_mode(int, char **); 223 void cmd_reset_shell_mode(int, char **); 224 void cmd_resetty(int, char **); 225 void cmd_resizeterm(int, char **); 226 void cmd_savetty(int, char **); 227 void cmd_scanw(int, char **); 228 void cmd_scroll(int, char **); 229 void cmd_scrollok(int, char **); 230 void cmd_setterm(int, char **); 231 void cmd_set_term(int, char **); 232 void cmd_start_color(int, char **); 233 void cmd_subpad(int, char **); 234 void cmd_subwin(int, char **); 235 void cmd_termattrs(int, char **); 236 void cmd_term_attrs(int, char **); 237 void cmd_touchline(int, char **); 238 void cmd_touchoverlap(int, char **); 239 void cmd_touchwin(int, char **); 240 void cmd_ungetch(int, char **); 241 void cmd_untouchwin(int, char **); 242 void cmd_use_default_colors(int, char **); 243 void cmd_vline(int, char **); 244 void cmd_vw_printw(int, char **); 245 void cmd_vw_scanw(int, char **); 246 void cmd_vwprintw(int, char **); 247 void cmd_vwscanw(int, char **); 248 void cmd_waddch(int, char **); 249 void cmd_waddchnstr(int, char **); 250 void cmd_waddchstr(int, char **); 251 void cmd_waddnstr(int, char **); 252 void cmd_wattr_get(int, char **); 253 void cmd_wattr_off(int, char **); 254 void cmd_wattr_on(int, char **); 255 void cmd_wattr_set(int, char **); 256 void cmd_wattroff(int, char **); 257 void cmd_wattron(int, char **); 258 void cmd_wattrset(int, char **); 259 void cmd_wbkgd(int, char **); 260 void cmd_wbkgdset(int, char **); 261 void cmd_wborder(int, char **); 262 void cmd_wchgat(int, char **); 263 void cmd_wclear(int, char **); 264 void cmd_wclrtobot(int, char **); 265 void cmd_wclrtoeol(int, char **); 266 void cmd_wcolor_set(int, char **); 267 void cmd_wdelch(int, char **); 268 void cmd_wdeleteln(int, char **); 269 void cmd_wechochar(int, char **); 270 void cmd_werase(int, char **); 271 void cmd_wgetch(int, char **); 272 void cmd_wgetnstr(int, char **); 273 void cmd_wgetstr(int, char **); 274 void cmd_whline(int, char **); 275 void cmd_winch(int, char **); 276 void cmd_winchnstr(int, char **); 277 void cmd_winchstr(int, char **); 278 void cmd_winnstr(int, char **); 279 void cmd_winsch(int, char **); 280 void cmd_winsdelln(int, char **); 281 void cmd_winsertln(int, char **); 282 void cmd_winstr(int, char **); 283 void cmd_wmove(int, char **); 284 void cmd_wnoutrefresh(int, char **); 285 void cmd_wprintw(int, char **); 286 void cmd_wredrawln(int, char **); 287 void cmd_wrefresh(int, char **); 288 void cmd_wresize(int, char **); 289 void cmd_wscanw(int, char **); 290 void cmd_wscrl(int, char **); 291 void cmd_wsetscrreg(int, char **); 292 void cmd_wstandend(int, char **); 293 void cmd_wstandout(int, char **); 294 void cmd_wtimeout(int, char **); 295 void cmd_wtouchln(int, char **); 296 void cmd_wunderend(int, char **); 297 void cmd_wunderscore(int, char **); 298 void cmd_wvline(int, char **); 299 void cmd_insnstr(int, char **); 300 void cmd_insstr(int, char **); 301 void cmd_mvinsnstr(int, char **); 302 void cmd_mvinsstr(int, char **); 303 void cmd_mvwinsnstr(int, char **); 304 void cmd_mvwinsstr(int, char **); 305 void cmd_winsnstr(int, char **); 306 void cmd_winsstr(int, char **); 307 308 void cmd_chgat(int, char **); 309 void cmd_wchgat(int, char **); 310 void cmd_mvchgat(int, char **); 311 void cmd_mvwchgat(int, char **); 312 void cmd_add_wch(int, char **); 313 void cmd_wadd_wch(int, char **); 314 void cmd_mvadd_wch(int, char **); 315 void cmd_mvwadd_wch(int, char **); 316 317 void cmd_add_wchnstr(int, char **); 318 void cmd_add_wchstr(int, char **); 319 void cmd_wadd_wchnstr(int, char **); 320 void cmd_wadd_wchstr(int, char **); 321 void cmd_mvadd_wchnstr(int, char **); 322 void cmd_mvadd_wchstr(int, char **); 323 void cmd_mvwadd_wchnstr(int, char **); 324 void cmd_mvwadd_wchstr(int, char **); 325 326 void cmd_addnwstr(int, char **); 327 void cmd_addwstr(int, char **); 328 void cmd_mvaddnwstr(int, char **); 329 void cmd_mvaddwstr(int, char **); 330 void cmd_mvwaddnwstr(int, char **); 331 void cmd_mvwaddwstr(int, char **); 332 void cmd_waddnwstr(int, char **); 333 void cmd_waddwstr(int, char **); 334 335 void cmd_echo_wchar(int, char **); 336 void cmd_wecho_wchar(int, char **); 337 void cmd_pecho_wchar(int, char **); 338 339 /* insert */ 340 void cmd_ins_wch(int, char **); 341 void cmd_wins_wch(int, char **); 342 void cmd_mvins_wch(int, char **); 343 void cmd_mvwins_wch(int, char **); 344 345 void cmd_ins_nwstr(int, char **); 346 void cmd_ins_wstr(int, char **); 347 void cmd_mvins_nwstr(int, char **); 348 void cmd_mvins_wstr(int, char **); 349 void cmd_mvwins_nwstr(int, char **); 350 void cmd_mvwins_wstr(int, char **); 351 void cmd_wins_nwstr(int, char **); 352 void cmd_wins_wstr(int, char **); 353 354 /* input */ 355 void cmd_get_wch(int, char **); 356 void cmd_unget_wch(int, char **); 357 void cmd_mvget_wch(int, char **); 358 void cmd_mvwget_wch(int, char **); 359 void cmd_wget_wch(int, char **); 360 361 void cmd_getn_wstr(int, char **); 362 void cmd_get_wstr(int, char **); 363 void cmd_mvgetn_wstr(int, char **); 364 void cmd_mvget_wstr(int, char **); 365 void cmd_mvwgetn_wstr(int, char **); 366 void cmd_mvwget_wstr(int, char **); 367 void cmd_wgetn_wstr(int, char **); 368 void cmd_wget_wstr(int, char **); 369 370 void cmd_in_wch(int, char **); 371 void cmd_mvin_wch(int, char **); 372 void cmd_mvwin_wch(int, char **); 373 void cmd_win_wch(int, char **); 374 375 void cmd_in_wchnstr(int, char **); 376 void cmd_in_wchstr(int, char **); 377 void cmd_mvin_wchnstr(int, char **); 378 void cmd_mvin_wchstr(int, char **); 379 void cmd_mvwin_wchnstr(int, char **); 380 void cmd_mvwin_wchstr(int, char **); 381 void cmd_win_wchnstr(int, char **); 382 void cmd_win_wchstr(int, char **); 383 384 void cmd_innwstr(int, char **); 385 void cmd_inwstr(int, char **); 386 void cmd_mvinnwstr(int, char **); 387 void cmd_mvinwstr(int, char **); 388 void cmd_mvwinnwstr(int, char **); 389 void cmd_mvwinwstr(int, char **); 390 void cmd_winnwstr(int, char **); 391 void cmd_winwstr(int, char **); 392 393 /* cchar handlgin */ 394 void cmd_setcchar(int, char **); 395 void cmd_getcchar(int, char **); 396 397 /* misc */ 398 void cmd_key_name(int, char **); 399 void cmd_border_set(int, char **); 400 void cmd_wborder_set(int, char **); 401 void cmd_box_set(int, char **); 402 void cmd_erasewchar(int, char **); 403 void cmd_killwchar(int, char **); 404 void cmd_hline_set(int, char **); 405 void cmd_mvhline_set(int, char **); 406 void cmd_mvvline_set(int, char **); 407 void cmd_mvwhline_set(int, char **); 408 void cmd_mvwvline_set(int, char **); 409 void cmd_vline_set(int, char **); 410 void cmd_whline_set(int, char **); 411 void cmd_wvline_set(int, char **); 412 void cmd_bkgrnd(int, char **); 413 void cmd_bkgrndset(int, char **); 414 void cmd_getbkgrnd(int, char **); 415 void cmd_wbkgrnd(int, char **); 416 void cmd_wbkgrndset(int, char **); 417 void cmd_wgetbkgrnd(int, char **); 418 419 420 421 422 #endif /* !_CURSES_COMMAND_H_ */ 423