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

📄 temuvt102.h

📁 Trolltech公司发布的图形界面操作系统。可在qt-embedded-2.3.10平台上编译为嵌入式图形界面操作系统。
💻 H
字号:
/************************************************************************ Copyright (C) 2000-2005 Trolltech AS and its licensors.** All rights reserved.**** This file is part of the Qtopia Environment.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/gpl/ for GPL licensing information.** See below for additional copyright and license information**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************//* -------------------------------------------------------------------------- *//*                                                                            *//* [TEmuVt102.h]            X Terminal Emulation                              *//*                                                                            *//* -------------------------------------------------------------------------- *//*                                                                            *//* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de>            *//*                                                                            *//* This file is part of Konsole - an X terminal for KDE                       *//*                                                                            *//* -------------------------------------------------------------------------- *//*									      *//* Konsole ported to Qt/Embedded by Trolltech                                 *//*									      *//* -------------------------------------------------------------------------- */#ifndef VT102EMU_H#define VT102EMU_H#include "TEWidget.h"#include "TEScreen.h"#include "TEmulation.h"#include <qtimer.h>#include <stdio.h>//#define MODE_AppScreen (MODES_SCREEN+0)#define MODE_AppCuKeys (MODES_SCREEN+1)#define MODE_AppKeyPad (MODES_SCREEN+2)#define MODE_Mouse1000 (MODES_SCREEN+3)#define MODE_Ansi      (MODES_SCREEN+4)#define MODE_total     (MODES_SCREEN+5)struct DECpar{  BOOL mode[MODE_total];};struct CharCodes{  // coding info  char charset[4]; //  int  cu_cs;      // actual charset.  bool graphic;    // Some VT100 tricks  bool pound  ;    // Some VT100 tricks  bool sa_graphic; // saved graphic  bool sa_pound;   // saved pound};class TEmuVt102 : public TEmulation{ Q_OBJECTpublic:  TEmuVt102(TEWidget* gui);  ~TEmuVt102();public slots: // signals incoming from TEWidget   void onKeyPress(QKeyEvent*);  void onMouse(int cb, int cx, int cy);signals:  void changeTitle(int,const QString&);  void prevSession();  void nextSession();public:  void reset();  void onRcvChar(int cc);  void sendString(const char *);public:      BOOL getMode    (int m);  void setMode    (int m);  void resetMode  (int m);  void saveMode   (int m);  void restoreMode(int m);  void resetModes();  void setConnect(bool r);private:  void resetToken();#define MAXPBUF 80  void pushToToken(int cc);  int pbuf[MAXPBUF]; //FIXME: overflow?  int ppos;#define MAXARGS 15  void addDigit(int dig);  void addArgument();  int argv[MAXARGS];  int argc;  void initTokenizer();  int tbl[256];  void scan_buffer_report(); //FIXME: rename  void ReportErrorToken();   //FIXME: rename  void tau(int code, int p, int q);  void XtermHack();  //   void reportTerminalType();  void reportStatus();  void reportAnswerBack();  void reportCursorPosition();  void reportTerminalParms(int p);protected:  unsigned short applyCharset(unsigned short c);  void setCharset(int n, int cs);  void useCharset(int n);  void setAndUseCharset(int n, int cs);  void saveCursor();  void restoreCursor();  void resetCharset(int scrno);  CharCodes charset[2];  DECpar currParm;  DECpar saveParm;};#endif // ifndef ANSIEMU_H

⌨️ 快捷键说明

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