onelineshell.h

来自「MONA是为数不多的C++语言编写的一个很小的操作系统」· C头文件 代码 · 共 51 行

H
51
字号
/*!
  \file   OneLineSh.h
  \brief  one line shell

  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 _ONE_LINE_SHELL_
#define _ONE_LINE_SHELL_
#include <sys/types.h>
#include <monapi.h>
#include <monapi/CString.h>
#include "Command.h"
#include "CommandHistory.h"

using namespace MonAPI;

class OneLineShell : public Server{

  private:
    Command cmd;
    CommandHistory cmdHst;
    CString msg;

  public:
    enum{
      Excute = 0,
      NothingFile = 1,
      MemErr = 2,
      FileReadErr = 3,
      SMemErr1 = 4,
      SMemErr2 = 5,
    };

    OneLineShell();
    virtual ~OneLineShell();
    void service();
    int OnKeyDown(KeyInfo keyInfo);
    void SetMessage(CString message);
    void SetMessage(int nMsg);

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?