FreeCalypso > hg > freecalypso-sw
comparison rvinterf/asyncshell/usercmd.c @ 874:72d64c172d85
fc-shell: Rx control implemented
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 30 May 2015 07:20:50 +0000 |
parents | 5e46679bdb6a |
children | dab341e172de |
comparison
equal
deleted
inserted
replaced
873:3be5a1b4c91a | 874:72d64c172d85 |
---|---|
9 #include <strings.h> | 9 #include <strings.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
11 | 11 |
12 extern char usercmd[]; | 12 extern char usercmd[]; |
13 | 13 |
14 extern void cmd_disable(); | |
15 extern void cmd_enable(); | |
16 | |
14 void | 17 void |
15 cmd_exit() | 18 cmd_exit() |
16 { | 19 { |
17 tty_cleanup(); | 20 tty_cleanup(); |
18 exit(0); | 21 exit(0); |
20 | 23 |
21 static struct cmdtab { | 24 static struct cmdtab { |
22 char *cmd; | 25 char *cmd; |
23 void (*func)(); | 26 void (*func)(); |
24 } cmdtab[] = { | 27 } cmdtab[] = { |
28 {"disable", cmd_disable}, | |
29 {"enable", cmd_enable}, | |
25 {"exit", cmd_exit}, | 30 {"exit", cmd_exit}, |
26 {"quit", cmd_exit}, | 31 {"quit", cmd_exit}, |
27 {0, 0} | 32 {0, 0} |
28 }; | 33 }; |
29 | 34 |