📄 command.h
字号:
/*!
\file Command.h
\brief one line shell command
Copyright (c) 2002-2004 shadow
All rights reserved.<BR>
\b License NYSL<BR>
\b Create 2004/03/27
\author shadow
$Revision: 1.4 $
$Date: 2004/05/08 06:39:41 $
*/
#ifndef _COMAND_
#define _COMAND_
#include <sys/types.h>
#include <monapi/CString.h>
#define POSITION_RIGHT -2
#define POSITION_LEFT -1
using namespace MonAPI;
/*!
\brief Command class
*/
class Command{
private:
CString commandLine;
int posCurrent;
bool isTerminateFlag;
int ParseCommand();
public:
Command();
~Command();
int GetCurrentPos();
int SetCurrentPos(int pos);
bool InsertCommandLine(const CString& s);
bool RemoveCommandLine();
bool InitializeCommandLine();
bool IsTerminate();
int ExecuteCommand();
Command operator+(const CString& s);
Command& operator=(const CString& s);
Command& operator+=(const CString& s);
operator const char *();
operator CString *();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -