xref: /freebsd/contrib/netbsd-tests/lib/libcurses/slave/command_table.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /*	$NetBSD: command_table.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 _COMMAND_TABLE_H_
33 #define	_COMMAND_TABLE_H_
34 
35 #include "curses_commands.h"
36 
37 /*
38  * Curses commands
39  */
40 struct command_def commands[] = {
41 	{"DRAIN", cmd_DRAIN},
42 	{"addbytes", cmd_addbytes},
43 	{"addch", cmd_addch},
44 	{"addchnstr", cmd_addchnstr},
45 	{"addchstr", cmd_addchstr},
46 	{"addnstr", cmd_addnstr},
47 	{"addstr", cmd_addstr},
48 	{"attr_get", cmd_attr_get},
49 	{"attr_off", cmd_attr_off},
50 	{"attr_on", cmd_attr_on},
51 	{"attr_set", cmd_attr_set},
52 	{"attroff", cmd_attroff},
53 	{"attron", cmd_attron},
54 	{"attrset", cmd_attrset},
55 	{"bkgd", cmd_bkgd},
56 	{"bkgdset", cmd_bkgdset},
57 	{"border", cmd_border},
58 	{"clear", cmd_clear},
59 	{"clrtobot", cmd_clrtobot},
60 	{"clrtoeol", cmd_clrtoeol},
61 	{"color_set", cmd_color_set},
62 	{"delch", cmd_delch},
63 	{"deleteln", cmd_deleteln},
64 	{"echochar", cmd_echochar},
65 	{"erase", cmd_erase},
66 	{"getch", cmd_getch},
67 	{"getnstr", cmd_getnstr},
68 	{"getstr", cmd_getstr},
69 	{"inch", cmd_inch},
70 	{"inchnstr", cmd_inchnstr},
71 	{"inchstr", cmd_inchstr},
72 	{"innstr", cmd_innstr},
73 	{"insch", cmd_insch},
74 	{"insdelln", cmd_insdelln},
75 	{"insertln", cmd_insertln},
76 	{"instr", cmd_instr},
77 	{"move", cmd_move},
78 	{"refresh", cmd_refresh},
79 	{"scrl", cmd_scrl},
80 	{"setscrreg", cmd_setscrreg},
81 	{"standend", cmd_standend},
82 	{"standout", cmd_standout},
83 	{"timeout", cmd_timeout},
84 	{"underscore", cmd_underscore},
85 	{"underend", cmd_underend},
86 	{"waddbytes", cmd_waddbytes},
87 	{"waddstr", cmd_waddstr},
88 	{"mvaddbytes", cmd_mvaddbytes},
89 	{"mvaddch", cmd_mvaddch},
90 	{"mvaddchnstr", cmd_mvaddchnstr},
91 	{"mvaddchstr", cmd_mvaddchstr},
92 	{"mvaddnstr", cmd_mvaddnstr},
93 	{"mvaddstr", cmd_mvaddstr},
94 	{"mvdelch", cmd_mvdelch},
95 	{"mvgetch", cmd_mvgetch},
96 	{"mvgetnstr", cmd_mvgetnstr},
97 	{"mvgetstr", cmd_mvgetstr},
98 	{"mvinch", cmd_mvinch},
99 	{"mvinchnstr", cmd_mvinchnstr},
100 	{"mvinchstr", cmd_mvinchstr},
101 	{"mvinnstr", cmd_mvinnstr},
102 	{"mvinsch", cmd_mvinsch},
103 	{"mvinstr", cmd_mvinstr},
104 	{"mvwaddbytes", cmd_mvwaddbytes},
105 	{"mvwaddch", cmd_mvwaddch},
106 	{"mvwaddchnstr", cmd_mvwaddchnstr},
107 	{"mvwaddchstr", cmd_mvwaddchstr},
108 	{"mvwaddnstr", cmd_mvwaddnstr},
109 	{"mvwaddstr", cmd_mvwaddstr},
110 	{"mvwdelch", cmd_mvwdelch},
111 	{"mvwgetch", cmd_mvwgetch},
112 	{"mvwgetnstr", cmd_mvwgetnstr},
113 	{"mvwgetstr", cmd_mvwgetstr},
114 	{"mvwinch", cmd_mvwinch},
115 	{"mvwinsch", cmd_mvwinsch},
116 	{"assume_default_colors", cmd_assume_default_colors},
117 	{"baudrate", cmd_baudrate},
118 	{"beep", cmd_beep},
119 	{"box", cmd_box},
120 	{"can_change_color", cmd_can_change_color},
121 	{"cbreak", cmd_cbreak},
122 	{"clearok", cmd_clearok},
123 	{"color_content", cmd_color_content},
124 	{"copywin", cmd_copywin},
125 	{"curs_set", cmd_curs_set},
126 	{"def_prog_mode", cmd_def_prog_mode},
127 	{"def_shell_mode", cmd_def_shell_mode},
128 	{"define_key", cmd_define_key},
129 	{"delay_output", cmd_delay_output},
130 	{"delscreen", cmd_delscreen},
131 	{"delwin", cmd_delwin},
132 	{"derwin", cmd_derwin},
133 	{"dupwin", cmd_dupwin},
134 	{"doupdate", cmd_doupdate},
135 	{"echo", cmd_echo},
136 	{"endwin", cmd_endwin},
137 	{"erasechar", cmd_erasechar},
138 	{"flash", cmd_flash},
139 	{"flushinp", cmd_flushinp},
140 	{"flushok", cmd_flushok},
141 	{"fullname", cmd_fullname},
142 	{"getattrs", cmd_getattrs},
143 	{"getbkgd", cmd_getbkgd},
144 	{"getcury", cmd_getcury},
145 	{"getcurx", cmd_getcurx},
146 	{"getyx", cmd_getyx},
147 	{"getbegy", cmd_getbegy},
148 	{"getbegx", cmd_getbegx},
149 	{"getmaxy", cmd_getmaxy},
150 	{"getmaxx", cmd_getmaxx},
151 	{"getpary", cmd_getpary},
152 	{"getparx", cmd_getparx},
153 	{"getparyx", cmd_getparyx},
154 	{"gettmode", cmd_gettmode},
155 	{"getwin", cmd_getwin},
156 	{"halfdelay", cmd_halfdelay},
157 	{"has_colors", cmd_has_colors},
158 	{"has_ic", cmd_has_ic},
159 	{"has_il", cmd_has_il},
160 	{"hline", cmd_hline},
161 	{"idcok", cmd_idcok},
162 	{"idlok", cmd_idlok},
163 	{"init_color", cmd_init_color},
164 	{"init_pair", cmd_init_pair},
165 	{"initscr", cmd_initscr},
166 	{"intrflush", cmd_intrflush},
167 	{"isendwin", cmd_isendwin},
168 	{"is_linetouched", cmd_is_linetouched},
169 	{"is_wintouched", cmd_is_wintouched},
170 	{"keyok", cmd_keyok},
171 	{"keypad", cmd_keypad},
172 	{"keyname", cmd_keyname},
173 	{"killchar", cmd_killchar},
174 	{"leaveok", cmd_leaveok},
175 	{"meta", cmd_meta},
176 	{"mvcur", cmd_mvcur},
177 	{"mvderwin", cmd_mvderwin},
178 	{"mvhline", cmd_mvhline},
179 	{"mvprintw", cmd_mvprintw},
180 	{"mvscanw", cmd_mvscanw},
181 	{"mvvline", cmd_mvvline},
182 	{"mvwhline", cmd_mvwhline},
183 	{"mvwvline", cmd_mvwvline},
184 	{"mvwin", cmd_mvwin},
185 	{"mvwinchnstr", cmd_mvwinchnstr},
186 	{"mvwinchstr", cmd_mvwinchstr},
187 	{"mvwinnstr", cmd_mvwinnstr},
188 	{"mvwinstr", cmd_mvwinstr},
189 	{"mvwprintw", cmd_mvwprintw},
190 	{"mvwscanw", cmd_mvwscanw},
191 	{"napms", cmd_napms},
192 	{"newpad", cmd_newpad},
193 	{"newterm", cmd_newterm},
194 	{"newwin", cmd_newwin},
195 	{"nl", cmd_nl},
196 	{"no_color_attributes", cmd_no_color_attributes},
197 	{"nocbreak", cmd_nocbreak},
198 	{"nodelay", cmd_nodelay},
199 	{"noecho", cmd_noecho},
200 	{"nonl", cmd_nonl},
201 	{"noqiflush", cmd_noqiflush},
202 	{"noraw", cmd_noraw},
203 	{"notimeout", cmd_notimeout},
204 	{"overlay", cmd_overlay},
205 	{"overwrite", cmd_overwrite},
206 	{"pair_content", cmd_pair_content},
207 	{"pechochar", cmd_pechochar},
208 	{"pnoutrefresh", cmd_pnoutrefresh},
209 	{"prefresh", cmd_prefresh},
210 	{"printw", cmd_printw},
211 	{"putwin", cmd_putwin},
212 	{"qiflush", cmd_qiflush},
213 	{"raw", cmd_raw},
214 	{"redrawwin", cmd_redrawwin},
215 	{"reset_prog_mode", cmd_reset_prog_mode},
216 	{"reset_shell_mode", cmd_reset_shell_mode},
217 	{"resetty", cmd_resetty},
218 	{"resizeterm", cmd_resizeterm},
219 	{"savetty", cmd_savetty},
220 	{"scanw", cmd_scanw},
221 	{"scroll", cmd_scroll},
222 	{"scrollok", cmd_scrollok},
223 	{"setterm", cmd_setterm},
224 	{"set_term", cmd_set_term},
225 	{"start_color", cmd_start_color},
226 	{"subpad", cmd_subpad},
227 	{"subwin", cmd_subwin},
228 	{"termattrs", cmd_termattrs},
229 	{"term_attrs", cmd_term_attrs},
230 	{"touchline", cmd_touchline},
231 	{"touchoverlap", cmd_touchoverlap},
232 	{"touchwin", cmd_touchwin},
233 	{"ungetch", cmd_ungetch},
234 	{"untouchwin", cmd_untouchwin},
235 	{"use_default_colors", cmd_use_default_colors},
236 	{"vline", cmd_vline},
237 	{"vw_printw", cmd_vw_printw},
238 	{"vw_scanw", cmd_vw_scanw},
239 	{"vwprintw", cmd_vwprintw},
240 	{"vwscanw", cmd_vwscanw},
241 	{"waddch", cmd_waddch},
242 	{"waddchnstr", cmd_waddchnstr},
243 	{"waddchstr", cmd_waddchstr},
244 	{"waddnstr", cmd_waddnstr},
245 	{"wattr_get", cmd_wattr_get},
246 	{"wattr_off", cmd_wattr_off},
247 	{"wattr_on", cmd_wattr_on},
248 	{"wattr_set", cmd_wattr_set},
249 	{"wattroff", cmd_wattroff},
250 	{"wattron", cmd_wattron},
251 	{"wattrset", cmd_wattrset},
252 	{"wbkgd", cmd_wbkgd},
253 	{"wbkgdset", cmd_wbkgdset},
254 	{"wborder", cmd_wborder},
255 	{"wclear", cmd_wclear},
256 	{"wclrtobot", cmd_wclrtobot},
257 	{"wclrtoeol", cmd_wclrtoeol},
258 	{"wcolor_set", cmd_wcolor_set},
259 	{"wdelch", cmd_wdelch},
260 	{"wdeleteln", cmd_wdeleteln},
261 	{"wechochar", cmd_wechochar},
262 	{"werase", cmd_werase},
263 	{"wgetch", cmd_wgetch},
264 	{"wgetnstr", cmd_wgetnstr},
265 	{"wgetstr", cmd_wgetstr},
266 	{"whline", cmd_whline},
267 	{"winch", cmd_winch},
268 	{"winchnstr", cmd_winchnstr},
269 	{"winchstr", cmd_winchstr},
270 	{"winnstr", cmd_winnstr},
271 	{"winsch", cmd_winsch},
272 	{"winsdelln", cmd_winsdelln},
273 	{"winsertln", cmd_winsertln},
274 	{"winstr", cmd_winstr},
275 	{"wmove", cmd_wmove},
276 	{"wnoutrefresh", cmd_wnoutrefresh},
277 	{"wprintw", cmd_wprintw},
278 	{"wredrawln", cmd_wredrawln},
279 	{"wrefresh", cmd_wrefresh},
280 	{"wresize", cmd_wresize},
281 	{"wscanw", cmd_wscanw},
282 	{"wscrl", cmd_wscrl},
283 	{"wsetscrreg", cmd_wsetscrreg},
284 	{"wstandend", cmd_wstandend},
285 	{"wstandout", cmd_wstandout},
286 	{"wtimeout", cmd_wtimeout},
287 	{"wtouchln", cmd_wtouchln},
288 	{"wunderend", cmd_wunderend},
289 	{"wunderscore", cmd_wunderscore},
290 	{"wvline", cmd_wvline},
291 	{"insnstr", cmd_insnstr},
292 	{"insstr", cmd_insstr},
293 	{"mvinsnstr", cmd_mvinsnstr},
294 	{"mvinsstr", cmd_mvinsstr},
295 	{"mvwinsnstr", cmd_mvwinsnstr},
296 	{"mvwinsstr", cmd_mvwinsstr},
297 	{"winsnstr", cmd_winsnstr},
298 	{"winsstr", cmd_winsstr},
299 	{"chgat", cmd_chgat},
300 	{"wchgat", cmd_wchgat},
301 	{"mvchgat", cmd_mvchgat},
302 	{"mvwchgat", cmd_mvwchgat},
303 	{"add_wch", cmd_add_wch},
304 	{"wadd_wch", cmd_wadd_wch},
305 	{"mvadd_wch", cmd_mvadd_wch},
306 	{"mvwadd_wch", cmd_mvwadd_wch},
307 	{"add_wchnstr", cmd_add_wchnstr},
308 	{"add_wchstr", cmd_add_wchstr},
309 	{"wadd_wchnstr", cmd_wadd_wchnstr},
310 	{"wadd_wchstr", cmd_wadd_wchstr},
311 	{"mvadd_wchnstr", cmd_mvadd_wchnstr},
312 	{"mvadd_wchstr", cmd_mvadd_wchstr},
313 	{"mvwadd_wchnstr", cmd_mvwadd_wchnstr},
314 	{"mvwadd_wchstr", cmd_mvwadd_wchstr},
315 	{"addnwstr", cmd_addnwstr},
316 	{"addwstr", cmd_addwstr},
317 	{"mvaddnwstr", cmd_mvaddnwstr},
318 	{"mvaddwstr", cmd_mvaddwstr},
319 	{"mvwaddnwstr", cmd_mvwaddnwstr},
320 	{"mvwaddwstr", cmd_mvwaddwstr},
321 	{"waddnwstr", cmd_waddnwstr},
322 	{"waddwstr", cmd_waddwstr},
323 	{"echo_wchar", cmd_echo_wchar},
324 	{"wecho_wchar", cmd_wecho_wchar},
325 	{"pecho_wchar", cmd_pecho_wchar},
326 	{"ins_wch", cmd_ins_wch},
327 	{"wins_wch", cmd_wins_wch},
328 	{"mvins_wch", cmd_mvins_wch},
329 	{"mvwins_wch", cmd_mvwins_wch},
330 	{"ins_nwstr", cmd_ins_nwstr},
331 	{"ins_wstr", cmd_ins_wstr},
332 	{"mvins_nwstr", cmd_mvins_nwstr},
333 	{"mvins_wstr", cmd_mvins_wstr},
334 	{"mvwins_nwstr", cmd_mvwins_nwstr},
335 	{"mvwins_wstr", cmd_mvwins_wstr},
336 	{"wins_nwstr", cmd_wins_nwstr},
337 	{"wins_wstr", cmd_wins_wstr},
338 	{"get_wch", cmd_get_wch},
339 	{"unget_wch", cmd_unget_wch},
340 	{"mvget_wch", cmd_mvget_wch},
341 	{"mvwget_wch", cmd_mvwget_wch},
342 	{"wget_wch", cmd_wget_wch},
343 	{"getn_wstr", cmd_getn_wstr},
344 	{"get_wstr", cmd_get_wstr},
345 	{"mvgetn_wstr", cmd_mvgetn_wstr},
346 	{"mvget_wstr", cmd_mvget_wstr},
347 	{"mvwgetn_wstr", cmd_mvwgetn_wstr},
348 	{"mvwget_wstr", cmd_mvwget_wstr},
349 	{"wgetn_wstr", cmd_wgetn_wstr},
350 	{"wget_wstr", cmd_wget_wstr},
351 	{"in_wch", cmd_in_wch},
352 	{"mvin_wch", cmd_mvin_wch},
353 	{"mvwin_wch", cmd_mvwin_wch},
354 	{"win_wch", cmd_win_wch},
355 	{"in_wchnstr", cmd_in_wchnstr},
356 	{"in_wchstr", cmd_in_wchstr},
357 	{"mvin_wchnstr", cmd_mvin_wchnstr},
358 	{"mvin_wchstr", cmd_mvin_wchstr},
359 	{"mvwin_wchnstr", cmd_mvwin_wchnstr},
360 	{"mvwin_wchstr", cmd_mvwin_wchstr},
361 	{"win_wchnstr", cmd_win_wchnstr},
362 	{"win_wchstr", cmd_win_wchstr},
363 	{"innwstr", cmd_innwstr},
364 	{"inwstr", cmd_inwstr},
365 	{"mvinnwstr", cmd_mvinnwstr},
366 	{"mvinwstr", cmd_mvinwstr},
367 	{"mvwinnwstr", cmd_mvwinnwstr},
368 	{"mvwinwstr", cmd_mvwinwstr},
369 	{"winnwstr", cmd_winnwstr},
370 	{"winwstr", cmd_winwstr},
371 	{"setcchar", cmd_setcchar},
372 	{"getcchar", cmd_getcchar},
373 	{"key_name", cmd_key_name},
374 	{"border_set", cmd_border_set},
375 	{"wborder_set", cmd_wborder_set},
376 	{"box_set", cmd_box_set},
377 	{"erasewchar", cmd_erasewchar},
378 	{"killwchar", cmd_killwchar},
379 	{"hline_set", cmd_hline_set},
380 	{"mvhline_set", cmd_mvhline_set},
381 	{"mvvline_set", cmd_mvvline_set},
382 	{"mvwhline_set", cmd_mvwhline_set},
383 	{"mvwvline_set", cmd_mvwvline_set},
384 	{"vline_set", cmd_vline_set},
385 	{"whline_set", cmd_whline_set},
386 	{"wvline_set", cmd_wvline_set},
387 	{"bkgrnd", cmd_bkgrnd},
388 	{"bkgrndset", cmd_bkgrndset},
389 	{"getbkgrnd", cmd_getbkgrnd},
390 	{"wbkgrnd", cmd_wbkgrnd},
391 	{"wbkgrndset", cmd_wbkgrndset},
392 	{"wgetbkgrnd", cmd_wgetbkgrnd},
393 };
394 
395 size_t ncmds = sizeof(commands) / sizeof(struct command_def);
396 
397 #endif /* _COMMAND_TABLE_H */
398