#include "unix/Vt102Emulation.h"
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <QtCore/QEvent>
#include <QKeyEvent>
#include <QtCore/QByteRef>
#include "unix/KeyboardTranslator.h"
#include "unix/Screen.h"
Go to the source code of this file.
Macros | |
#define | ANSWER_BACK "" |
#define | ces(C) ( cc < 256 && (tbl[ cc ] & (C)) == (C) && !Xte) |
#define | CHARSET _charset[_currentScreen==_screen[1]] |
#define | CHR 2 |
#define | CNTL(c) ((c)-'@') |
#define | CPN 4 |
#define | CPS 64 |
#define | CTL 1 |
#define | DIG 8 |
#define | eec(C) (p >= 3 && cc == (C)) |
#define | ees(C) (p >= 3 && cc < 256 && (tbl[ cc ] & (C)) == (C)) |
#define | egt() (p >= 3 && s[2] == '>' ) |
#define | encodeMode(M, B) BITS(B,getMode(M)) |
#define | encodeStat(M, B) BITS(B,((ev->modifiers() & (M)) == (M))) |
#define | epe() (p >= 3 && s[2] == '!' ) |
#define | epp() (p >= 3 && s[2] == '?' ) |
#define | eps(C) (p >= 3 && s[2] != '?' && s[2] != '!' && s[2] != '>' && cc < 256 && (tbl[ cc ] & (C)) == (C)) |
#define | ESC 27 |
#define | GRP 32 |
#define | lec(P, L, C) (p == (P) && s[(L)] == (C)) |
#define | les(P, L, C) (p == (P) && s[L] < 256 && (tbl[s[(L)]] & (C)) == (C)) |
#define | lun() (p == 1 && cc >= 32 ) |
#define | SCS 16 |
#define | TY_CHR() TY_CONSTR(0,0,0) |
#define | TY_CONSTR(T, A, N) ( ((((int)N) & 0xffff) << 16) | ((((int)A) & 0xff) << 8) | (((int)T) & 0xff) ) |
#define | TY_CSI_PE(A) TY_CONSTR(10,A,0) |
#define | TY_CSI_PG(A) TY_CONSTR(9,A,0) |
#define | TY_CSI_PN(A) TY_CONSTR(6,A,0) |
#define | TY_CSI_PR(A, N) TY_CONSTR(7,A,N) |
#define | TY_CSI_PS(A, N) TY_CONSTR(5,A,N) |
#define | TY_CTL(A) TY_CONSTR(1,A,0) |
#define | TY_ESC(A) TY_CONSTR(2,A,0) |
#define | TY_ESC_CS(A, B) TY_CONSTR(3,A,B) |
#define | TY_ESC_DE(A) TY_CONSTR(4,A,0) |
#define | TY_VT52(A) TY_CONSTR(8,A,0) |
#define | Xpe (ppos>=2 && pbuf[1] == ']' ) |
#define | Xte (Xpe && cc == 7 ) |
Functions | |
static void | hexdump (int *s, int len) |
#define ANSWER_BACK "" |
Definition at line 883 of file Vt102Emulation.cpp.
Definition at line 280 of file Vt102Emulation.cpp.
#define CHARSET _charset[_currentScreen==_screen[1]] |
Definition at line 1038 of file Vt102Emulation.cpp.
#define CHR 2 |
Definition at line 233 of file Vt102Emulation.cpp.
#define CNTL | ( | c | ) | ((c)-'@') |
Definition at line 283 of file Vt102Emulation.cpp.
#define CPN 4 |
Definition at line 234 of file Vt102Emulation.cpp.
#define CPS 64 |
Definition at line 238 of file Vt102Emulation.cpp.
#define CTL 1 |
Definition at line 232 of file Vt102Emulation.cpp.
#define DIG 8 |
Definition at line 235 of file Vt102Emulation.cpp.
Definition at line 272 of file Vt102Emulation.cpp.
Definition at line 273 of file Vt102Emulation.cpp.
#define egt | ( | ) | (p >= 3 && s[2] == '>' ) |
Definition at line 277 of file Vt102Emulation.cpp.
Definition at line 926 of file Vt102Emulation.cpp.
#define epe | ( | ) | (p >= 3 && s[2] == '!' ) |
Definition at line 276 of file Vt102Emulation.cpp.
#define epp | ( | ) | (p >= 3 && s[2] == '?' ) |
Definition at line 275 of file Vt102Emulation.cpp.
#define eps | ( | C | ) | (p >= 3 && s[2] != '?' && s[2] != '!' && s[2] != '>' && cc < 256 && (tbl[ cc ] & (C)) == (C)) |
Definition at line 274 of file Vt102Emulation.cpp.
#define ESC 27 |
Definition at line 282 of file Vt102Emulation.cpp.
#define GRP 32 |
Definition at line 237 of file Vt102Emulation.cpp.
Definition at line 269 of file Vt102Emulation.cpp.
Definition at line 271 of file Vt102Emulation.cpp.
#define lun | ( | ) | (p == 1 && cc >= 32 ) |
Definition at line 270 of file Vt102Emulation.cpp.
#define SCS 16 |
Definition at line 236 of file Vt102Emulation.cpp.
#define TY_CHR | ( | ) | TY_CONSTR(0,0,0) |
Definition at line 184 of file Vt102Emulation.cpp.
#define TY_CONSTR | ( | T, | |
A, | |||
N | |||
) | ( ((((int)N) & 0xffff) << 16) | ((((int)A) & 0xff) << 8) | (((int)T) & 0xff) ) |
Definition at line 182 of file Vt102Emulation.cpp.
Definition at line 197 of file Vt102Emulation.cpp.
Definition at line 195 of file Vt102Emulation.cpp.
Definition at line 190 of file Vt102Emulation.cpp.
Definition at line 185 of file Vt102Emulation.cpp.
Definition at line 186 of file Vt102Emulation.cpp.
Definition at line 188 of file Vt102Emulation.cpp.
Definition at line 193 of file Vt102Emulation.cpp.
#define Xpe (ppos>=2 && pbuf[1] == ']' ) |
Definition at line 278 of file Vt102Emulation.cpp.
#define Xte (Xpe && cc == 7 ) |
Definition at line 279 of file Vt102Emulation.cpp.
|
static |
shows the contents of the scan buffer.
This functions is used for diagnostics. It is called by ReportErrorToken to inform about strings that cannot be decoded or handled by the emulation.
Definition at line 1252 of file Vt102Emulation.cpp.
References len.
Referenced by Vt102Emulation::scan_buffer_report().