command.h
来自「凌阳SPCE3200多媒体开发板自带源程序。共安排了32个子目录」· C头文件 代码 · 共 28 行
H
28 行
/* Maximum number of arguments in a command line:*/
#define CMDLINESIZE 280
#define ARGCNT 8
#define CMD_SUCCESS 0
#define CMD_FAILURE -1
#define CMD_PARAM_ERROR -2
#define CMD_LINE_ERROR -3
#define CMD_ULVL_DENIED -4
#define CMD_NOT_FOUND -5
#define CMD_PREFILL -6
extern CODE struct monCommand cmdlist[];
#define CTLC 0x03 /* control-c */
char sio_getc(void);
/* Command table structure used by the monitor:
*/
struct monCommand {
char *name; /* Name of command seen by user. */
int (*func)(int, char**); /* Function called when command is invoked. */
char CODE * CODE *helptxt; /* Help text (see notes below). */
struct cliextra *clix; /* Pointer to "extras" that may or may not be */
/* used by a specific command. */
};
void CommandLoop(void);
extern char CODE * CODE ErrorInfo[];
int docommand(char *cmdline);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?