 
#ifndef termulator_DEFINED
#define termulator_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from tm.ch and will be
 * overwritten.  Make changes to tm.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from tm.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


 

/*
 * terminal emulator for text
 */

/* sunOS is the only place I know of that the "correct" way actually works */
#ifndef sunV3
#define INCORRECTSIGNALS
#endif /* sunV3 */

#define HACKEDNOECHO

struct cmd {
    struct cmd *next,*prev;
    char *string;
};

enum termulator_Mode {termulator_ModeCooked, termulator_ModeCbreak, termulator_ModeRaw};

#define INTRCHAR '\003'
#define QUITCHAR '\034'
#define STOPCHAR '\032'






/* 
 * End of information copied from tm.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_text
#include "text.ih"
#undef dontDefineRoutinesFor_text

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for termulator 
 */ 
struct termulator { 
    union {
	struct basicobject_methods *termulator_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
	struct simpletext simpletext;
	struct text text;
    } header;
        int screen,cursor,lastSubmit;
	int width,height;
	int dispWidth,dispHeight;
#ifdef HACKEDNOECHO
	char inpBuf[300];
	int inpLen;
#endif /* HACKEDNOECHO */
	struct tmview *inpView; /* manipulated by views */
	char parseBuf[100];
	int parseLen;
	char *cwd;
        int x,y;
	int pty;
	FILE *ptyFile;
	int pid;
	struct cmd *lastCmd, *curCmd;
	char **args;
	boolean insert,standout;
	char *errstr;
	int errno;
	struct style *cmdStyle,*noechoStyle,*soStyle,*screenStyle;
	struct environment *cmdEnv,*screenEnv;
	int mode;
	boolean remote;
	long maxsize;
	long extraroom;
	char *(*escapes[256])();
	char *(*state)();
	boolean currentlyReadingTemplateKluge;

};

 
/* 
 * End of data structure for termulator.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef termulator_PROGRAMMERVERSION
#define termulator_PROGRAMMERVERSION 1
#endif /* termulator_PROGRAMMERVERSION */

#ifdef termulator_VERSION
#undef termulator_VERSION
#endif /* termulator_VERSION */
#define termulator_VERSION ((((termulator_PROGRAMMERVERSION << 16) ^ (106 << 8) ^ sizeof(struct termulator)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define termulator_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *termulator__GetClassInfo(); \
 extern struct classheader *tm_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, tm_classheader_StaticExport->name, termulator__GetClassInfo, NULL, tm_classheader_StaticExport->namekey); } 
 
#define termulator_StaticLoad()  \
    { \
    text_StaticLoad(); \
    termulator_StaticLoadOnlyThisClass();  \
    } 
 
#define termulator_StaticEntry  {termulator_StaticLoad()} 
 
#define tm_StaticEntry  {termulator_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader termulator_classheader = {
    termulator_VERSION,
    "termulator",
    "tm",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define termulator_CLASSPROCEDURES (termulator_classheader.classprocedures)
int tm_classref_;
#endif /* class_StaticInfoOnly */

#endif /* termulator_DEFINED */

#if !defined(termulator_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_termulator) && !defined(class_StaticEntriesOnly)
#define termulator_ROUTINESDEFINED

#define termulator_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define termulator_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define termulator_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define termulator_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[0]))) (self,observer))
#define termulator_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[1]))) (self,observer))
#define termulator_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[2]))) (self,observer))
#define termulator_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[3]))) (self,value))
#define termulator_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[4]))) (self,changed,value))
#define termulator_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define termulator_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[6]))) (self,trigger,rcvr))
#define termulator_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[7]))) (self,trigger))
#define termulator_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[8]))) (self,trigger))
#define termulator_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[9]))) (self,trigger))
#define termulator_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[10]))) (self,trigger))
#define termulator_Read(self,file,id) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[11]))) (self,file,id))
#define termulator_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[12]))) (self,file,writeid,level))
#define termulator_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[13]))) (self,file,fmt,encoding,description))
#define termulator_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define termulator_GetModified(self) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[15]))) (self))
#define termulator_SetModified(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[16]))) (self))
#define termulator_ViewName(self) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[17]))) (self))
#define termulator_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[18]))) (self,attributes))
#define termulator_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[19]))) (self,property,type,rock))
#define termulator_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.termulator_methods->routines[20]))) (self,property,type,rock))
#define termulator_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.termulator_methods->routines[21]))) (self,array,size))
#define termulator_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[22]))) (self,oldmodified))
#define termulator_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define termulator_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define termulator_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define termulator_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define termulator_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define termulator_CreateMark(self,pos,length) \
    ((* ((struct mark * (*)())((self)->header.termulator_methods->routines[23]))) (self,pos,length))
#define termulator_RemoveMark(self,mark) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[24]))) (self,mark))
#define termulator_SetReadOnly(self,readOnly) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[25]))) (self,readOnly))
#define termulator_GetReadOnly(self) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[26]))) (self))
#define termulator_RegionModified(self,pos,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[27]))) (self,pos,len))
#define termulator_LengthChanged(self,pos,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[28]))) (self,pos,len))
#define termulator_Clear(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[29]))) (self))
#define termulator_InsertCharacters(self,pos,str,len) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[30]))) (self,pos,str,len))
#define termulator_AlwaysInsertCharacters(self,position,string,size) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[31]))) (self,position,string,size))
#define termulator_AddInCharacter(self,pos,c) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[32]))) (self,pos,c))
#define termulator_DeleteCharacters(self,pos,len) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[33]))) (self,pos,len))
#define termulator_AlwaysDeleteCharacters(self,position,size) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[34]))) (self,position,size))
#define termulator_ReplaceCharacters(self,pos,len,repStr,repLen) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[35]))) (self,pos,len,repStr,repLen))
#define termulator_AlwaysReplaceCharacters(self,pos,len,repStr,repLen) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[36]))) (self,pos,len,repStr,repLen))
#define termulator_GetLength(self) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[37]))) (self))
#define termulator_GetChar(self,pos) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[38]))) (self,pos))
#define termulator_GetUnsignedChar(self,pos) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[39]))) (self,pos))
#define termulator_GetBuf(self,pos,len,lenp) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[40]))) (self,pos,len,lenp))
#define termulator_GetBufEnd(self,endpos,len,lenp) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[41]))) (self,endpos,len,lenp))
#define termulator_GetGap(self,pos,len) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[42]))) (self,pos,len))
#define termulator_GetPosForLine(self,line) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[43]))) (self,line))
#define termulator_GetLineForPos(self,pos) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[44]))) (self,pos))
#define termulator_GetBeginningOfLine(self,pos) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[45]))) (self,pos))
#define termulator_GetEndOfLine(self,pos) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[46]))) (self,pos))
#define termulator_CopyText(self,pos,srctext,srcpos,len) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[47]))) (self,pos,srctext,srcpos,len))
#define termulator_AlwaysCopyText(self,pos,srctext,srcpos,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[48]))) (self,pos,srctext,srcpos,len))
#define termulator_Index(self,pos,c,len) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[49]))) (self,pos,c,len))
#define termulator_Strncmp(self,pos,str,len) \
    ((* ((int (*)())((self)->header.termulator_methods->routines[50]))) (self,pos,str,len))
#define termulator_Textncmp(self,pos,text,pos2,len) \
    ((* ((int (*)())((self)->header.termulator_methods->routines[51]))) (self,pos,text,pos2,len))
#define termulator_ReadSubString(self,pos,file,quoteCharacters) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[52]))) (self,pos,file,quoteCharacters))
#define termulator_WriteSubString(self,pos,len,file,quoteCharacters) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[53]))) (self,pos,len,file,quoteCharacters))
#define termulator_CopySubString(self,pos,len,buf,quoteCharacters) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[54]))) (self,pos,len,buf,quoteCharacters))
#define termulator_HandleDataObject(self,pos,dop,file) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[55]))) (self,pos,dop,file))
#define termulator_HandleKeyWord(self,pos,keyword,file) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[56]))) (self,pos,keyword,file))
#define termulator_HandleCloseBrace(self,pos,file) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[57]))) (self,pos,file))
#define termulator_HandleBegindata(self,pos,file) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[58]))) (self,pos,file))
#define termulator_CheckHighBit(self) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[59]))) (self))
#define termulator_CopyTextExactly(self,pos,srctext,srcpos,len) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[60]))) (self,pos,srctext,srcpos,len))
#define termulator_AlwaysCopyTextExactly(self,pos,srctext,srcpos,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[61]))) (self,pos,srctext,srcpos,len))
#define termulator_GetFence(self) \
 mark_GetLength(((&(self)->header.simpletext))->fence)
#define termulator_SetFence(self,pos) \
 mark_SetLength(((&(self)->header.simpletext))->fence, pos)
#define termulator_ClearFence(self) \
 mark_SetLength(((&(self)->header.simpletext))->fence, 0L)
#define termulator_GetFenceMark(self) \
 (((&(self)->header.simpletext))->fence)
#define termulator_GetObjectInsertionFlag(self) \
 (((&(self)->header.simpletext))->objectInsertionAllowed)
#define termulator_SetObjectInsertionFlag(self,flag) \
 (((&(self)->header.simpletext))->objectInsertionAllowed = (flag))
#define termulator_InsertObject(self,pos,name,viewname) \
    ((* ((struct viewref * (*)())((self)->header.termulator_methods->routines[62]))) (self,pos,name,viewname))
#define termulator_AddStyle(self,pos,len,style) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[63]))) (self,pos,len,style))
#define termulator_AddView(self,pos,viewtype,dataobject) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[64]))) (self,pos,viewtype,dataobject))
#define termulator_AlwaysAddStyle(self,pos,len,style) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[65]))) (self,pos,len,style))
#define termulator_AlwaysAddView(self,pos,viewtype,dataobject) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[66]))) (self,pos,viewtype,dataobject))
#define termulator_SetEnvironmentStyle(self,envptr,styleptr) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[67]))) (self,envptr,styleptr))
#define termulator_SetGlobalStyle(self,styleptr) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[68]))) (self,styleptr))
#define termulator_GetGlobalStyle(self) \
    ((* ((struct style * (*)())((self)->header.termulator_methods->routines[69]))) (self))
#define termulator_ReadTemplate(self,templateName,inserttemplatetext) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[70]))) (self,templateName,inserttemplatetext))
#define termulator_FindViewreference(self,pos,len) \
    ((* ((struct viewref * (*)())((self)->header.termulator_methods->routines[71]))) (self,pos,len))
#define termulator_AlwaysInsertFile(self,file,filename,position) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[72]))) (self,file,filename,position))
#define termulator_InsertFile(self,file,filename,position) \
    ((* ((long (*)())((self)->header.termulator_methods->routines[73]))) (self,file,filename,position))
#define termulator_ClearCompletely(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[74]))) (self))
#define termulator_EnumerateEnvironments(self,pos,len,callBack,rock) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[75]))) (self,pos,len,callBack,rock))
#define termulator_SetBaseTemplateName(self,name) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[76]))) (self,name))
#define termulator_AlwaysWrapViewChar(self,pos,view,dobj) \
    ((* ((struct environment * (*)())((self)->header.termulator_methods->routines[77]))) (self,pos,view,dobj))
#define termulator_SetExportEnvironments(self,val) \
 ((&(self)->header.text)->exportEnvs = val)
#define termulator_GetExportEnvironments(self) \
 ((&(self)->header.text)->exportEnvs)
#define termulator_GetStyleSheet(self) \
 ((&(self)->header.text)->styleSheet)
#define termulator_SetWriteAsText(self,TorF) \
  (((&(self)->header.text))->WriteAsText = TorF)
#define termulator_GetWriteAsText(self) \
  (((&(self)->header.text))->WriteAsText)
#define termulator_SetCopyAsText(self,TorF) \
  (((&(self)->header.text))->CopyAsText = TorF)
#define termulator_GetCopyAsText(self) \
  (((&(self)->header.text))->CopyAsText)
#define termulator_GetWriteStyle(self) \
 (((&(self)->header.text))->writeStyle)
#define termulator_SetWriteStyle(self,style) \
 (((&(self)->header.text))->writeStyle = style)
#define termulator_GetBaseTemplateName(self) \
 (((&(self)->header.text))->templateName)
#define termulator_StartProcess(self,args) \
    ((* ((int (*)())((self)->header.termulator_methods->routines[78]))) (self,args))
#define termulator_GrabPrevCmd(self,str) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[79]))) (self,str))
#define termulator_GrabNextCmd(self,str) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[80]))) (self,str))
#define termulator_EnterCmd(self,string) \
    ((* ((boolean (*)())((self)->header.termulator_methods->routines[81]))) (self,string))
#define termulator_RewindCmds(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[82]))) (self))
#define termulator_ProcessInput(self,text,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[83]))) (self,text,len))
#define termulator_SendInput(self,text,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[84]))) (self,text,len))
#define termulator_Submit(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[85]))) (self))
#define termulator_Signal(self,signo) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[86]))) (self,signo))
#define termulator_SetScreenSize(self,width,height) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[87]))) (self,width,height))
#define termulator_SetDispSize(self,width,height) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[88]))) (self,width,height))
#define termulator_ProcessOutput(self,str,len) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[89]))) (self,str,len))
#define termulator_GetTermcap(self) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[90]))) (self))
#define termulator_GetTerm(self) \
    ((* ((char * (*)())((self)->header.termulator_methods->routines[91]))) (self))
#define termulator_Untermulate(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[92]))) (self))
#define termulator_GotoXY(self,x,y) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[93]))) (self,x,y))
#define termulator_WriteChars(self,chars,numChars) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[94]))) (self,chars,numChars))
#define termulator_DeleteChars(self,numChars) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[95]))) (self,numChars))
#define termulator_ClearChars(self,x,numChars) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[96]))) (self,x,numChars))
#define termulator_InsertLines(self,numLines) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[97]))) (self,numLines))
#define termulator_DeleteLines(self,numLines) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[98]))) (self,numLines))
#define termulator_ClearLines(self,y,numLines) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[99]))) (self,y,numLines))
#define termulator_Scroll(self,num) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[100]))) (self,num))
#define termulator_Newline(self,num) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[101]))) (self,num))
#define termulator_Backspace(self,num) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[102]))) (self,num))
#define termulator_CR(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[103]))) (self))
#define termulator_Tab(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[104]))) (self))
#define termulator_EOT(self) \
    ((* ((void (*)())((self)->header.termulator_methods->routines[105]))) (self))
#define termulator_GetX(self) \
 ((self)->x)
#define termulator_GetY(self) \
 ((self)->y)
#define termulator_GetWidth(self) \
 ((self)->width)
#define termulator_GetHeight(self) \
 ((self)->height)
#define termulator_SetInsert(self,b) \
 ((self)->insert=(b))
#define termulator_GetInsert(self) \
 ((self)->insert)
#define termulator_SetStandout(self,b) \
 ((self)->standout=(b))
#define termulator_GetStandout(self) \
 ((self)->standout)
#define termulator_SetEscape(self,c,action) \
 ((self)->escapes[c]=(action))
#define termulator_GetEscape(self,c) \
 ((self)->escapes[c])
#define termulator_SetParseState(self,rtn) \
 ((self)->state=(rtn))
#define termulator_GetParseState(self) \
 ((self)->state)
#define termulator_GetParseBuf(self) \
 ((self)->parseBuf)
#define termulator_GetParseBufLen(self) \
 ((self)->parseLen)
#define termulator_SetParseBufLen(self,l) \
 ((self)->parseLen=(l))
#define termulator_GetParseBufMax(self) \
 (sizeof((self)->parseBuf))

#define termulator_NewFromObject(self) \
    ((* ((struct termulator * (*)())((self)->header.termulator_methods->info->procs->routines[0]))) (&termulator_classheader, (self)->header.termulator_methods->info->versionnumber))
#define termulator_New() \
    (*((struct termulator * (*)()) (termulator_CLASSPROCEDURES->routines[0])))(&termulator_classheader,termulator_VERSION)
#define termulator_Initialize(self) \
    (*((void (*)()) (termulator_CLASSPROCEDURES->routines[2])))(&termulator_classheader,self, termulator_VERSION)

#define termulator_Destroy(self) \
    ((* ((void (*)()) ((self)->header.termulator_methods->info->procs->routines[1]))) (&termulator_classheader, self))
#define termulator_Finalize(self) \
    (*((void (*)()) (termulator_CLASSPROCEDURES->routines[3])))(&termulator_classheader,self)

#define termulator_InitializeObject(self) \
    (*((boolean (*)()) (termulator_CLASSPROCEDURES->routines[5])))(&termulator_classheader,self)
#define termulator_FinalizeObject(self) \
    (*((void (*)()) (termulator_CLASSPROCEDURES->routines[6])))(&termulator_classheader,self)


#endif /* !defined(termulator_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_termulator ) && !defined(class_StaticEntriesOnly)*/

