RMUL2025/lib/mini_shell/example/linux/ms_config.h

48 lines
840 B
C

/* 最大命令长度 */
#define MS_MAX_CMD_LENGTH (64)
/* 命令参数上限 */
#define MS_MAX_ARG_NUM (5)
/* 历史命令数量 */
#define MS_MAX_HISTORY_NUM (8)
/* 命令行打印缓冲区长度 */
#define MS_WIRITE_BUFF_SIZE (128)
/* cat命令缓冲区 */
#define MS_CAT_BUFF_SIZE (128)
/* 自定义颜色 */
#define MS_HEAD_COLOR MS_COLOR_GREEN
/* 系统名称 */
#define MS_OS_NAME "mini-shell"
/* 用户名称 */
#define MS_USER_NAME "jiu-xiao"
/* 欢迎信息 */
#define MS_HELLO_MESSAGE "Welcome to use Mini Shell!"
/* 登陆命令 */
#define MS_INIT_COMMAND ""
/* 内置文件选择编译 */
#define MS_FILE_TTY (0)
#define MS_FILE_README (0)
/* 内置命令选择编译 */
#define MS_CMD_PWD (1)
#define MS_CMD_LS (1)
#define MS_CMD_CD (1)
#define MS_CMD_CAT (1)
#define MS_CMD_ECHO (1)
#define MS_CMD_CLEAR (1)