⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shell.h

📁 Unix下的MUD客户端程序
💻 H
字号:
// A shell is a Window that is executing some program and showing the resultsclass Shell : public ScrollableWindow, public Selectable, public Numbered{public:    Shell (Window *_parent, const char *_command, int _w, int _h, int _x, int _y, int _timeout);    virtual ~Shell() {        killProcess();    }    virtual int init_fdset(fd_set *readset, fd_set *) {        if (fd < 0)            return 0;        else {            FD_SET(fd, readset);            return fd;        }    }    virtual void check_fdset(fd_set* readset, fd_set* writeset);    virtual void idle();    // When asked to pop up selected by alt-X, update last_input    virtual void popUp();    private:    void killProcess(); // finish off our child        String command;    pid_t pid;    int fd;    int timeout;       // How much time will there go since last input before we hide the window?    time_t last_input; // When did we last hear from the window?};

⌨️ 快捷键说明

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