Xterminal Home Page | Main page |
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() method 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
- 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_IS_CONSOLE indicates that the terminal is a system console
- TM_HAVE_MOUSE indicates that the terminal recognizes the mouse
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 color virtual void ColorWindowContent(XRect __r, unsigned __f, unsigned __b)
__f - desired foreground color
__b - desired background color virtual void DrawBorder(XRect __r, char *__frame)
__frame - margins type, with the following contents:
virtual void FillWindow(XRect __r, chtype __c)
__c - desired filling character virtual void GetColor(unsigned *__f, unsigned *__b)
virtual XPoint GetCursorPosition()
virtual XEvent* GetEvent()
virtual unsigned GetInputState(unsigned long __Mask)
virtual int GetInputTimeout()
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 unsigned GetState(unsigned long __Mask)
virtual void GetWindow(XRect __r, chtype *__buff)
__buff - pointer to the beggining of memory area virtual void MoveCursor(XPoint __p)
virtual void Print(XPoint __p, char *__fmt, ...)
virtual void PrintChar(XPoint __p, chtype __c)
__c - character to output virtual void Refresh()
virtual void Resume()
virtual void PutWindow(XRect __r, chtype *__buff)
__buff - pointer to the beggining of memory area virtual void SetColor(unsigned __f, unsigned __b)
__b - desired background color virtual void SetInputState(unsigned long __Mask, unsigned __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear it virtual void SetOutputState(unsigned long __Mask, unsigned __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear it virtual void SetState(unsigned long __Mask, unsigned __BoolValue)
__BoolValue - set bit if non-zero, otherwise clear it virtual void Suspend()
unsigned long InputState
XPoint Cursor
XPoint Size
unsigned ForegroundColor
unsigned UseFunctionKeys
int InputTimeout
int EscTimeout