Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TEmuVt102.cpp File Reference

#include "TEmuVt102.h"
#include <stdio.h>
#include <unistd.h>

Include dependency graph for TEmuVt102.cpp:

Go to the source code of this file.

Defines

#define TY_CONSTR(T, A, N)   ( ((((int)N) & 0xffff) << 16) | ((((int)A) & 0xff) << 8) | (((int)T) & 0xff) )
#define TY_CHR___()   TY_CONSTR(0,0,0)
#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_CSI_PS(A, N)   TY_CONSTR(5,A,N)
#define TY_CSI_PN(A)   TY_CONSTR(6,A,0)
#define TY_CSI_PR(A, N)   TY_CONSTR(7,A,N)
#define TY_VT52__(A)   TY_CONSTR(8,A,0)
#define CTL   1
#define CHR   2
#define CPN   4
#define DIG   8
#define SCS   16
#define GRP   32
#define lec(P, L, C)   (p == (P) && s[(L)] == (C))
#define lun()   (p == 1 && cc >= 32 )
#define les(P, L, C)   (p == (P) && s[L] < 256 && (tbl[s[(L)]] & (C)) == (C))
#define eec(C)   (p >= 3 && cc == (C))
#define ees(C)   (p >= 3 && cc < 256 && (tbl[ cc ] & (C)) == (C))
#define eps(C)   (p >= 3 && s[2] != '?' && cc < 256 && (tbl[ cc ] & (C)) == (C))
#define epp()   (p >= 3 && s[2] == '?' )
#define egt()   (p == 3 && s[2] == '>' )
#define Xpe   (ppos>=2 && pbuf[1] == ']' )
#define Xte   (Xpe && cc == 7 )
#define ces(C)   ( cc < 256 && (tbl[ cc ] & (C)) == (C) && !Xte)
#define ESC   27
#define CNTL(c)   ((c)-'@')
#define ANSWER_BACK   ""
#define encodeMode(M, B)   BITS(B,getMode(M))
#define encodeStat(M, B)   BITS(B,((ev->state() & (M)) == (M)))
#define CHARSET   charset[scr==screen[1]]

Functions

static void hexdump (int *s, int len)


Define Documentation

#define ANSWER_BACK   ""
 

Definition at line 667 of file TEmuVt102.cpp.

Referenced by TEmuVt102::reportAnswerBack().

#define ces  )     ( cc < 256 && (tbl[ cc ] & (C)) == (C) && !Xte)
 

Definition at line 238 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define CHARSET   charset[scr==screen[1]]
 

Definition at line 800 of file TEmuVt102.cpp.

Referenced by TEmuVt102::applyCharset(), TEmuVt102::restoreCursor(), TEmuVt102::saveCursor(), TEmuVt102::setAndUseCharset(), and TEmuVt102::useCharset().

#define CHR   2
 

Definition at line 195 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

#define CNTL  )     ((c)-'@')
 

Definition at line 241 of file TEmuVt102.cpp.

#define CPN   4
 

Definition at line 196 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

#define CTL   1
 

Definition at line 194 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

#define DIG   8
 

Definition at line 197 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

#define eec  )     (p >= 3 && cc == (C))
 

Definition at line 231 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define ees  )     (p >= 3 && cc < 256 && (tbl[ cc ] & (C)) == (C))
 

Definition at line 232 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

 
#define egt  )     (p == 3 && s[2] == '>' )
 

Definition at line 235 of file TEmuVt102.cpp.

#define encodeMode M,
 )     BITS(B,getMode(M))
 

Definition at line 697 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onKeyPress().

#define encodeStat M,
 )     BITS(B,((ev->state() & (M)) == (M)))
 

Definition at line 698 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onKeyPress().

 
#define epp  )     (p >= 3 && s[2] == '?' )
 

Definition at line 234 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define eps  )     (p >= 3 && s[2] != '?' && cc < 256 && (tbl[ cc ] & (C)) == (C))
 

Definition at line 233 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and qdtoa().

#define ESC   27
 

Definition at line 240 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define GRP   32
 

Definition at line 199 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

#define lec P,
L,
 )     (p == (P) && s[(L)] == (C))
 

Definition at line 228 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define les P,
L,
 )     (p == (P) && s[L] < 256 && (tbl[s[(L)]] & (C)) == (C))
 

Definition at line 230 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

 
#define lun  )     (p == 1 && cc >= 32 )
 

Definition at line 229 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define SCS   16
 

Definition at line 198 of file TEmuVt102.cpp.

Referenced by TEmuVt102::initTokenizer(), and TEmuVt102::onRcvChar().

 
#define TY_CHR___  )     TY_CONSTR(0,0,0)
 

Definition at line 150 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_CONSTR T,
A,
 )     ( ((((int)N) & 0xffff) << 16) | ((((int)A) & 0xff) << 8) | (((int)T) & 0xff) )
 

Definition at line 148 of file TEmuVt102.cpp.

#define TY_CSI_PN  )     TY_CONSTR(6,A,0)
 

Definition at line 156 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_CSI_PR A,
 )     TY_CONSTR(7,A,N)
 

Definition at line 157 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_CSI_PS A,
 )     TY_CONSTR(5,A,N)
 

Definition at line 155 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_CTL___  )     TY_CONSTR(1,A,0)
 

Definition at line 151 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_ESC___  )     TY_CONSTR(2,A,0)
 

Definition at line 152 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_ESC_CS A,
 )     TY_CONSTR(3,A,B)
 

Definition at line 153 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_ESC_DE  )     TY_CONSTR(4,A,0)
 

Definition at line 154 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define TY_VT52__  )     TY_CONSTR(8,A,0)
 

Definition at line 159 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar(), and TEmuVt102::tau().

#define Xpe   (ppos>=2 && pbuf[1] == ']' )
 

Definition at line 236 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().

#define Xte   (Xpe && cc == 7 )
 

Definition at line 237 of file TEmuVt102.cpp.

Referenced by TEmuVt102::onRcvChar().


Function Documentation

static void hexdump int *  s,
int  len
[static]
 

Definition at line 989 of file TEmuVt102.cpp.

References i, and printf.

Referenced by rdp_recv(), TEmuVt102::scan_buffer_report(), and sec_send().


Generated on Sat Nov 5 16:21:32 2005 for OPIE by  doxygen 1.4.2