📄 shell.h
字号:
#ifndef __RMSHELL_H__#define __RMSHELL_H__#ifdef __cplusplusextern "C" {#endiftypedef void (*RMShellCommandVoid) (void *userdata);typedef void (*RMShellCommandUInt32) (RMuint32 val, void *userdata);typedef void (*RMShellCommandUInt32UInt32) (RMuint32 val1, RMuint32 val2, void *userdata);typedef void (*RMShellCommandUInt32String) (RMuint32 val1, const RMascii *val2, void *userdata);typedef void (*RMShellCommandString) (const RMascii *val, void *userdata);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32 (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32 cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32UInt32 (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32UInt32 cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandUInt32String (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandUInt32String cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandString (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandString cmd);RM_LIBRARY_IMPORT_EXPORT void RMShellAddCommandVoid (const RMascii *token, const RMascii *name, const RMascii *help, RMShellCommandVoid cmd);/** Must be called prior to calling any other function of this API. It sets up the Shell. It can be called a second timne, after RMShellDeInit has been called. */RM_LIBRARY_IMPORT_EXPORT void RMShellInit (const RMascii *appName, void *userData);/** Used to free the memory used by the shell. */RM_LIBRARY_IMPORT_EXPORT void RMShellDeInit (void);/** Each invocation of this function will invoke one command if the user typed one. It will do nothing otherwise and return immediatly. */RM_LIBRARY_IMPORT_EXPORT void RMShellRun (void);#ifdef __cplusplus};#endif#endif //__RMSHELL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -