Class that abstractize the input/output operations with the terminal
Class that abstractize the input/output operations with the terminal
__frame[0] - the upper-left corner character
__frame[1] - the upper horizontal line character
__frame[2] - the upper-right corner character
__frame[3] - the left vertical line character
__frame[4] - the right vertical line character
__frame[5] - the lower-left corner character
__frame[6] - the lower horizontal line character
__frame[7] - the lower-right corner character
Predefined values:
FS_SINGLEFRAME - single-line frame
FS_DOUBLEFRAME - double-line frame
FS_FULLFRAME - full-filled frame
- if TI_BLOCKING_INPUT is set, the function waits until an event
coming from keyboard or mouse arrise, and then returns it
- if TI_BLOCKING_INPUT is not set, the function returns the first
available event coming from keyboard or mouse, if any. If nothing is
available, the function returns zero
TI_BLOCKING_INPUT indicates that GetEvent waits until an
event from keyboard or mouse arrise
TI_USE_FUNCTION_KEYS indicates that pressing the function keys will
generate a keyboard event; this flag should normally be set
TI_INSERT_MODE indicates that pressing a letter inserts it into
the text being edited
TO_HAVE_COLORS indicates that the terminal can display colors
TO_CURSOR_VISIBLE indicates that the cursor is visible
TO_CURSOR_VERY_VISIBLE indicates that the cursor is very visible
TM_IS_PC_CONSOLE indicates that the terminal is a PC console
TM_CAN_RESIZE indicates that the terminal window can be resized
TM_HAVE_MOUSE indicates that the terminal have mouse support
TM_HAVE_GPM_MOUSE indicates that the GPM mouse support is activated
TA_UNDERLINE underlining
TA_REVERSE reverse video
TA_BLINK blinking
TA_BOLD extra bright
TA_HALF_BRIGHT half bright
virtual ~XTerminal()
virtual void Beep()
virtual void Clear()
virtual void ColorWindow(XRect __r, unsigned __f, unsigned __b)
__f - desired foreground color
__b - desired background colorvirtual void ColorWindowContent(XRect __r, unsigned __f, unsigned __b)
__f - desired foreground color
__b - desired background colorvirtual void DrawBorder(XRect __r, char *__frame)
__frame - margins type, with the following contents:
virtual void FillWindow(XRect __r, chtype __c)
__c - desired filling charactervirtual void GetColor(unsigned *__f, unsigned *__b)
virtual XPoint GetCursorPosition()
virtual XEvent* GetEvent()
virtual unsigned GetInputState(unsigned long __Mask)
virtual int GetInputTimeout()
virtual char* GetName()
virtual unsigned GetPalEntry(char *__Pal, unsigned __Len, unsigned __Index)
__Len - object's palette length
__Index - color position into the palette (1 = first)virtual unsigned GetOutputState(unsigned long __Mask)
virtual XPoint GetSize()
virtual bool GetState(unsigned long __Mask)
virtual void GetWindow(XRect __r, chtype *__buff)
__buff - pointer to the beggining of memory areavirtual bool IsValid(XPoint __p)
virtual bool IsValid(XRect __r)
virtual void MoveCursor(XPoint __p)
virtual void Print(XPoint __p, char *__fmt, ...)
virtual void PrintChar(XPoint __p, chtype __c)
__c - character to outputvirtual void Refresh()
virtual void Resize()
virtual void Resume()
virtual void PutWindow(XRect __r, chtype *__buff)
__buff - pointer to the beggining of memory areavirtual void SetColor(unsigned __f, unsigned __b)
__b - desired background colorvirtual void SetInputState(unsigned long __Mask, bool __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear itvirtual void SetOutputState(unsigned long __Mask, bool __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear itvirtual void SetState(unsigned long __Mask, bool __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear itvirtual void Suspend()
unsigned long InputState
XPoint Cursor
XPoint Size
char* Name
unsigned ForegroundColor
unsigned UseFunctionKeys
int InputTimeout
int EscTimeout