39#include "shcmdparse.h"
55#define NEED_NEW_LINE(timesPrint, lineCap) ((timesPrint) % (lineCap) == 0)
56#define SCREEN_IS_FULL(timesPrint, lineCap) ((timesPrint) >= ((lineCap) * DEFAULT_SCREEN_HEIGHT))
59extern unsigned int OsCmdKeyShift(
const char *cmdKey,
char *cmdOut,
unsigned int size);
unsigned int OsCmdExec(CmdParsed *cmdParsed, char *cmdStr)
执行命令,shell是运行程序的程序.
int OsShellSetWorkingDirectory(const char *dir, size_t len)
unsigned int OsShellKeyInit(ShellCB *shellCB)
shell 命令初始化
void OsShellHistoryShow(unsigned int value, ShellCB *shellCB)
显示shell命令历史记录,支持上下键方式
void OsShellCmdPush(const char *string, CmdKeyLink *cmdKeyLink)
将shell命令 string 以 CmdKeyLink 方式加入链表
int OsTabCompletion(char *cmdKey, unsigned int *len)
tab键
void OsShellKeyDeInit(CmdKeyLink *cmdKeyLink)
shell的析构函数
unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)