comparison rvinterf/asyncshell/usercmd.c @ 31:5b4e345095c4

fc-shell help command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 23 Oct 2016 18:38:07 +0000
parents e7502631a0f9
children 8c7e86bc137e
comparison
equal deleted inserted replaced
30:43e4c95d148a 31:5b4e345095c4
11 11
12 extern char usercmd[]; 12 extern char usercmd[];
13 13
14 extern void cmd_disable(); 14 extern void cmd_disable();
15 extern void cmd_enable(); 15 extern void cmd_enable();
16 extern void cmd_help();
16 extern void cmd_poweroff(); 17 extern void cmd_poweroff();
17 extern void cmd_sendat(); 18 extern void cmd_sendat();
18 extern void cmd_send_interactive(); 19 extern void cmd_send_interactive();
19 extern void cmd_sp_interactive(); 20 extern void cmd_sp_interactive();
20 extern void cmd_tch_dispatch(); 21 extern void cmd_tch_dispatch();
33 void (*func)(); 34 void (*func)();
34 } cmdtab[] = { 35 } cmdtab[] = {
35 {"disable", cmd_disable}, 36 {"disable", cmd_disable},
36 {"enable", cmd_enable}, 37 {"enable", cmd_enable},
37 {"exit", cmd_exit}, 38 {"exit", cmd_exit},
39 {"help", cmd_help},
38 {"poweroff", cmd_poweroff}, 40 {"poweroff", cmd_poweroff},
39 {"quit", cmd_exit}, 41 {"quit", cmd_exit},
40 {"send", cmd_send_interactive}, 42 {"send", cmd_send_interactive},
41 {"sp", cmd_sp_interactive}, 43 {"sp", cmd_sp_interactive},
42 {"str", cmd_sendat}, 44 {"str", cmd_sendat},