📄 mstat.c
字号:
#include "config.h"#include "genlib.h"#include "stddefs.h"char *MstatHelp[] = { "Monitor status", "-[b:]", " -b {baud} set baud rate", 0,};intMstat(int argc,char *argv[]){ extern int InitUART(int); void mstatshow(void); int opt; /* If no args, just dump current status. */ if (argc == 1) { mstatshow(); return(0); } while ((opt=getopt(argc,argv,"b:")) != -1) { switch(opt) { case 'b': InitUART(atoi(optarg)); break; default: return(0); } } if (argc != optind) return(-1); return(0);}voidInitMonSTATUS(ulong state){}voidSetMonSTATUS(void){}voidmstatshow(void){ monHeader(0); mstatshowcom();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -