ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ansiprsr.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include <stdio.h>
00004 #include <stdlib.h>
00005 #include <ctype.h>
00006 #include <string.h>
00007 #include "tnconfig.h"
00008 #include "tparser.h"
00009 
00010 // added this color table to make things go faster (Paul Branann 5/8/98)
00011 enum Colors {BLACK=0, BLUE, GREEN, CYAN, RED, MAGENTA, YELLOW, WHITE};
00012 extern const int ANSIColors[];
00013 
00014 // This should be greater than the largest conceivable window size
00015 // 200 should suffice
00016 #define MAX_TAB_POSITIONS 200
00017 
00018 // Added by Frediano Ziglio 6/2/2000
00019 // Include Meridian Emulator support
00020 // undefine it to remove support
00021 #define MTE_SUPPORT 1
00022 
00023 // TANSIParser is now properly no longer a base class for TTelnetParser.
00024 // Screen output is handled in TConsole.cpp.
00025 // (Paul Brannan 6/15/98)
00026 class TANSIParser : public TParser {
00027 private:
00028     char* ParseEscapeANSI(char* pszBuffer, char* pszBufferEnd);
00029     char* ParseANSIBuffer(char* pszBuffer, char* pszBufferEnd);
00030     char* ParseEscape(char* pszBuffer, char* pszBufferEnd);
00031     // Added by I.Ioannou 06/04/97
00032     char* PrintBuffer(char* pszBuffer, char* pszBufferEnd);
00033     char* PrintGoodChars(char * pszHead, char * pszTail);
00034 
00035 #ifdef MTE_SUPPORT
00036     // Added by Frediano Ziglio, 5/31/2000
00037     char* ParseEscapeMTE(char* pszBuffer, char* pszBufferEnd);
00038     short int mteRegionXF,mteRegionYF;
00039 #endif
00040 
00041     void ConSetAttribute(unsigned char wAttr);
00042     const char *GetTerminalID();
00043     void ConSetCursorPos(int x, int y);
00044     void ResetTerminal();
00045     void Init();
00046 
00047     void SaveCurX(int iX);
00048     void SaveCurY(int iY);
00049 
00050     void resetTabStops();
00051 
00052     int iSavedCurX;
00053     int iSavedCurY;
00054     unsigned char iSavedAttributes;
00055     FILE * dumpfile;
00056 
00057     // Added by I.Ioannou 06 April 1997
00058     FILE * printfile;
00059     char InPrintMode;
00060     int inGraphMode;
00061 
00062     char last_char;                 // TITUS++: 2. November 98
00063 
00064     char map_G0, map_G1;
00065     int current_map;
00066     bool vt52_mode;
00067     bool print_ctrl;
00068     bool ignore_margins;
00069     bool fast_write;
00070     bool newline_mode;
00071 
00072     int tab_stops[MAX_TAB_POSITIONS];
00073 
00074 public:
00075     // Changed by Paul Brannan 5/13/98
00076     TANSIParser(TConsole &Console, KeyTranslator &RefKeyTrans,
00077         TScroller &RefScroller, TNetwork &NetHandler, TCharmap &RefCharmap);
00078     ~TANSIParser();
00079 
00080     char* ParseBuffer(char* pszBuffer, char* pszBufferEnd);
00081     static int StripBuffer(char* pszBuffer, char* pszBufferEnd, int width);
00082 };

Generated on Fri May 25 2012 04:15:33 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.