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

TEScreen Class Reference

The image manipulated by the emulation. More...

#include </home/clem/local/src/opie/core/apps/embeddedkonsole/TEScreen.h>

Collaboration diagram for TEScreen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TEScreen (int lines, int columns)
 ~TEScreen ()
void cursorUp (int n)
void cursorDown (int n)
void cursorLeft (int n)
void cursorRight (int n)
void setCursorY (int y)
void setCursorX (int x)
void setCursorYX (int y, int x)
void setMargins (int t, int b)
void NewLine ()
void NextLine ()
void index ()
void reverseIndex ()
void Return ()
void BackSpace ()
void Tabulate ()
void eraseChars (int n)
void deleteChars (int n)
void insertChars (int n)
void deleteLines (int n)
void insertLines (int n)
void clearTabStops ()
void changeTabStop (bool set)
void resetMode (int n)
void setMode (int n)
void saveMode (int n)
void restoreMode (int n)
void saveCursor ()
void restoreCursor ()
void clearEntireScreen ()
void clearToEndOfScreen ()
void clearToBeginOfScreen ()
void clearEntireLine ()
void clearToEndOfLine ()
void clearToBeginOfLine ()
void helpAlign ()
void setRendition (int rendition)
void resetRendition (int rendition)
void setForeColor (int fgcolor)
void setBackColor (int bgcolor)
void setDefaultRendition ()
void setForeColorToDefault ()
void setBackColorToDefault ()
BOOL getMode (int n)
int getCursorX ()
int getCursorY ()
void clear ()
void home ()
void reset ()
void ShowCharacter (unsigned short c)
void resizeImage (int new_lines, int new_columns)
cagetCookedImage ()
int getLines ()
int getColumns ()
void setHistCursor (int cursor)
int getHistCursor ()
void setHorzCursor (int cursor)
int getHorzCursor ()
int getHistLines ()
void setScroll (bool on)
bool hasScroll ()
void setSelBeginXY (const int x, const int y)
void setSelExtentXY (const int x, const int y)
void clearSelection ()
QString getSelText (const BOOL preserve_line_breaks)
void checkSelection (int from, int to)
 TEScreen (int lines, int columns)
 ~TEScreen ()
void cursorUp (int n)
void cursorDown (int n)
void cursorLeft (int n)
void cursorRight (int n)
void setCursorY (int y)
void setCursorX (int x)
void setCursorYX (int y, int x)
void setMargins (int t, int b)
void NewLine ()
void NextLine ()
void index ()
void reverseIndex ()
void Return ()
void BackSpace ()
void Tabulate ()
void eraseChars (int n)
void deleteChars (int n)
void insertChars (int n)
void deleteLines (int n)
void insertLines (int n)
void clearTabStops ()
void changeTabStop (bool set)
void resetMode (int n)
void setMode (int n)
void saveMode (int n)
void restoreMode (int n)
void saveCursor ()
void restoreCursor ()
void clearEntireScreen ()
void clearToEndOfScreen ()
void clearToBeginOfScreen ()
void clearEntireLine ()
void clearToEndOfLine ()
void clearToBeginOfLine ()
void helpAlign ()
void setRendition (int rendition)
void resetRendition (int rendition)
void setForeColor (int fgcolor)
void setBackColor (int bgcolor)
void setDefaultRendition ()
void setForeColorToDefault ()
void setBackColorToDefault ()
BOOL getMode (int n)
int getCursorX ()
int getCursorY ()
void clear ()
void home ()
void reset ()
void ShowCharacter (unsigned short c)
void resizeImage (int new_lines, int new_columns)
cagetCookedImage ()
int getLines ()
int getColumns ()
void setHistCursor (int cursor)
int getHistCursor ()
int getHistLines ()
void setScroll (bool on)
bool hasScroll ()
void setSelBeginXY (const int x, const int y)
void setSelExtentXY (const int x, const int y)
void clearSelection ()
QString getSelText (const BOOL preserve_line_breaks)
void checkSelection (int from, int to)
QString getHistory ()

Private Member Functions

void clearImage (int loca, int loce, char c)
void moveImage (int dst, int loca, int loce)
void scrollUp (int from, int i)
void scrollDown (int from, int i)
void addHistLine ()
void initTabStops ()
void effectiveRendition ()
void reverseRendition (ca *p)
void clearImage (int loca, int loce, char c)
void moveImage (int dst, int loca, int loce)
void scrollUp (int from, int i)
void scrollDown (int from, int i)
void addHistLine ()
void initTabStops ()
void effectiveRendition ()
void reverseRendition (ca *p)

Private Attributes

int lines
int columns
caimage
int histCursor
HistoryScroll hist
int horzCursor
int cuX
int cuY
UINT8 cu_fg
UINT8 cu_bg
UINT8 cu_re
int tmargin
int bmargin
ScreenParm currParm
bool * tabstops
int sel_begin
int sel_TL
int sel_BR
UINT8 ef_fg
UINT8 ef_bg
UINT8 ef_re
int sa_cuX
int sa_cuY
UINT8 sa_cu_re
UINT8 sa_cu_fg
UINT8 sa_cu_bg
ScreenParm saveParm
caimage
bool * tabstops

Detailed Description

The image manipulated by the emulation.

This class implements the operations of the terminal emulation framework. It is a complete passive device, driven by the emulation decoder (TEmuVT102). By this it forms in fact an ADT, that defines operations on a rectangular image.

It does neither know how to display its image nor about escape sequences. It is further independent of the underlying toolkit. By this, one can even use this module for an ordinary text surface.

Since the operations are called by a specific emulation decoder, one may collect their different operations here.

The state manipulated by the operations is mainly kept in `image', though it is a little more complex bejond this. See the header file of the class.

See also:
TEWidget

VT102Emulation

Definition at line 44 of file TEScreen.h.


Constructor & Destructor Documentation

TEScreen::TEScreen int  lines,
int  columns
 

creates a `TEScreen' of `lines' lines and `columns' columns.

Definition at line 68 of file TEScreen.cpp.

References clearSelection(), histCursor, horzCursor, image, initTabStops(), NULL, reset(), and tabstops.

TEScreen::~TEScreen  ) 
 

Destructor

Definition at line 87 of file TEScreen.cpp.

References image, and tabstops.

TEScreen::TEScreen int  lines,
int  columns
 

TEScreen::~TEScreen  ) 
 


Member Function Documentation

void TEScreen::addHistLine  )  [private]
 

void TEScreen::addHistLine  )  [private]
 

Definition at line 1171 of file TEScreen.cpp.

References HistoryScroll::addCells(), HistoryScroll::addLine(), assert, columns, end, HistoryScroll::getLines(), hasScroll(), hist, histCursor, and image.

Referenced by index(), and resizeImage().

void TEScreen::BackSpace  ) 
 

void TEScreen::BackSpace  ) 
 

Moves the cursor left one column.

Definition at line 598 of file TEScreen.cpp.

References BS_CLEARS, ca::c, cuX, cuY, image, and loc.

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

void TEScreen::changeTabStop bool  set  ) 
 

void TEScreen::changeTabStop bool  set  ) 
 

Definition at line 618 of file TEScreen.cpp.

References columns, cuX, and tabstops.

Referenced by TEmuVt102::tau().

void TEScreen::checkSelection int  from,
int  to
 

void TEScreen::checkSelection int  from,
int  to
 

put `c' literally onto the screen at the current cursor position.

VT100 uses the convention to produce an automatic newline (am) with the *first* character that would fall onto the next line (xenl).

Definition at line 652 of file TEScreen.cpp.

References clearSelection(), HistoryScroll::getLines(), hist, loc, sel_begin, sel_BR, and sel_TL.

Referenced by ShowCharacter().

void TEScreen::clear  ) 
 

void TEScreen::clear  ) 
 

Clear the entire screen and home the cursor.

Definition at line 589 of file TEScreen.cpp.

References clearEntireScreen(), and home().

Referenced by reset().

void TEScreen::clearEntireLine  ) 
 

void TEScreen::clearEntireLine  ) 
 

clears entire current cursor line

Definition at line 889 of file TEScreen.cpp.

References clearImage(), columns, cuY, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::clearEntireScreen  ) 
 

void TEScreen::clearEntireScreen  ) 
 

clear the entire screen.

Definition at line 856 of file TEScreen.cpp.

References clearImage(), columns, lines, and loc.

Referenced by clear(), TEmuVt102::setMode(), and TEmuVt102::tau().

void TEScreen::clearImage int  loca,
int  loce,
char  c
[private]
 

void TEScreen::clearImage int  loca,
int  loce,
char  c
[private]
 

fill screen between (including) `loca' and `loce' with spaces.

This is an internal helper functions. The parameter types are internal addresses of within the screen image and make use of the way how the screen matrix is mapped to the image vector.

Definition at line 801 of file TEScreen.cpp.

References ca::b, ca::c, clearSelection(), ef_bg, ef_fg, ef_re, ca::f, HistoryScroll::getLines(), hist, i, image, loc, ca::r, sel_BR, and sel_TL.

Referenced by clearEntireLine(), clearEntireScreen(), clearToBeginOfLine(), clearToBeginOfScreen(), clearToEndOfLine(), clearToEndOfScreen(), deleteChars(), eraseChars(), helpAlign(), insertChars(), scrollDown(), and scrollUp().

void TEScreen::clearSelection  ) 
 

void TEScreen::clearSelection  ) 
 

Definition at line 969 of file TEScreen.cpp.

References sel_begin, sel_BR, and sel_TL.

Referenced by checkSelection(), clearImage(), TEmulation::clearSelection(), TEmuVt102::resetMode(), resizeImage(), TEmulation::setConnect(), TEmuVt102::setMode(), setScroll(), and TEScreen().

void TEScreen::clearTabStops  ) 
 

void TEScreen::clearTabStops  ) 
 

Definition at line 613 of file TEScreen.cpp.

References columns, FALSE, i, and tabstops.

Referenced by TEmuVt102::tau().

void TEScreen::clearToBeginOfLine  ) 
 

void TEScreen::clearToBeginOfLine  ) 
 

clear from begin of current cursor line to (including) current cursor position.

Definition at line 881 of file TEScreen.cpp.

References clearImage(), cuX, cuY, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::clearToBeginOfScreen  ) 
 

void TEScreen::clearToBeginOfScreen  ) 
 

clear from begin of screen to (including) current cursor position.

Definition at line 848 of file TEScreen.cpp.

References clearImage(), cuX, cuY, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::clearToEndOfLine  ) 
 

void TEScreen::clearToEndOfLine  ) 
 

clear from (including) current cursor position to end of current cursor line.

Definition at line 873 of file TEScreen.cpp.

References clearImage(), columns, cuX, cuY, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::clearToEndOfScreen  ) 
 

void TEScreen::clearToEndOfScreen  ) 
 

clear from (including) current cursor position to end of screen.

Definition at line 840 of file TEScreen.cpp.

References clearImage(), columns, cuX, cuY, lines, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::cursorDown int  n  ) 
 

void TEScreen::cursorDown int  n  ) 
 

Move the cursor down.

The cursor will not be moved beyond the bottom margin.

Definition at line 132 of file TEScreen.cpp.

References bmargin, columns, cuX, cuY, and lines.

Referenced by TEmuVt102::tau().

void TEScreen::cursorLeft int  n  ) 
 

void TEScreen::cursorLeft int  n  ) 
 

Move the cursor left.

The cursor will not move beyond the first column.

Definition at line 147 of file TEScreen.cpp.

References columns, and cuX.

Referenced by TEmuVt102::tau().

void TEScreen::cursorRight int  n  ) 
 

void TEScreen::cursorRight int  n  ) 
 

Move the cursor left.

The cursor will not move beyond the rightmost column.

Definition at line 161 of file TEScreen.cpp.

References columns, and cuX.

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

void TEScreen::cursorUp int  n  ) 
 

void TEScreen::cursorUp int  n  ) 
 

Move the cursor up.

The cursor will not be moved beyond the top margin.

Definition at line 117 of file TEScreen.cpp.

References columns, cuX, cuY, and tmargin.

Referenced by TEmuVt102::tau().

void TEScreen::deleteChars int  n  ) 
 

void TEScreen::deleteChars int  n  ) 
 

delete `n' characters starting from (including) the cursor position.

The line is filled in from the right with spaces.

Definition at line 260 of file TEScreen.cpp.

References clearImage(), columns, cuX, cuY, loc, moveImage(), and p.

Referenced by TEmuVt102::tau().

void TEScreen::deleteLines int  n  ) 
 

void TEScreen::deleteLines int  n  ) 
 

delete `n' lines starting from (including) the cursor position.

The cursor is not moved by the operation.

Definition at line 287 of file TEScreen.cpp.

References cuY, and scrollUp().

Referenced by TEmuVt102::tau().

void TEScreen::effectiveRendition  )  [private]
 

void TEScreen::effectiveRendition  )  [private]
 

Definition at line 474 of file TEScreen.cpp.

References BASE_COLORS, cu_bg, cu_fg, cu_re, ef_bg, ef_fg, ef_re, RE_BLINK, RE_BOLD, RE_REVERSE, and RE_UNDERLINE.

Referenced by resetRendition(), restoreCursor(), setBackColor(), setBackColorToDefault(), setDefaultRendition(), setForeColor(), setForeColorToDefault(), and setRendition().

void TEScreen::eraseChars int  n  ) 
 

void TEScreen::eraseChars int  n  ) 
 

erase `n' characters starting from (including) the cursor position.

The line is filled in from the right with spaces.

Definition at line 248 of file TEScreen.cpp.

References clearImage(), columns, cuX, cuY, loc, and p.

Referenced by TEmuVt102::tau().

int TEScreen::getColumns  )  [inline]
 

return the number of columns.

Definition at line 144 of file TEScreen.h.

int TEScreen::getColumns  )  [inline]
 

return the number of columns.

Definition at line 145 of file TEScreen.h.

Referenced by TEmulation::showBulk().

ca* TEScreen::getCookedImage  ) 
 

ca * TEScreen::getCookedImage  ) 
 

returns the image.

Get the size of the image by

See also:
getLines and

getColumns.

NOTE that the image returned by this function must later be freed.

Definition at line 507 of file TEScreen.cpp.

References columns, cuX, cuY, DEFAULT_BACK_COLOR, DEFAULT_FORE_COLOR, DEFAULT_RENDITION, HistoryScroll::getCells(), HistoryScroll::getLineLen(), HistoryScroll::getLines(), getMode(), hist, histCursor, i, image, len, lines, loc, MODE_Cursor, MODE_Screen, p, reverseRendition(), sel_BR, sel_TL, Opie::MM::x, and Opie::MM::y.

Referenced by TEmulation::showBulk().

int TEScreen::getCursorX  ) 
 

int TEScreen::getCursorX  ) 
 

returns the current cursor columns.

Definition at line 770 of file TEScreen.cpp.

References cuX.

Referenced by TEmuVt102::reportCursorPosition().

int TEScreen::getCursorY  ) 
 

int TEScreen::getCursorY  ) 
 

returns the current cursor line.

Definition at line 778 of file TEScreen.cpp.

References cuY.

Referenced by TEmuVt102::reportCursorPosition().

int TEScreen::getHistCursor  ) 
 

return the position of the history cursor.

int TEScreen::getHistCursor  ) 
 

return the position of the history cursor.

Definition at line 1211 of file TEScreen.cpp.

References histCursor.

Referenced by TEmuVt102::onKeyPress(), TEmulation::onKeyPress(), and TEmulation::showBulk().

int TEScreen::getHistLines  ) 
 

int TEScreen::getHistLines  ) 
 

Definition at line 1221 of file TEScreen.cpp.

References HistoryScroll::getLines(), and hist.

Referenced by TEmuVt102::onKeyPress(), TEmulation::onKeyPress(), and TEmulation::showBulk().

QString TEScreen::getHistory  ) 
 

Definition at line 1123 of file TEScreen.cpp.

References QString::at(), getSelText(), QString::length(), sel_begin, sel_BR, sel_TL, setSelExtentXY(), QString::truncate(), and QChar::unicode().

Referenced by TEmulation::streamHistory().

int TEScreen::getHorzCursor  ) 
 

return the position of the horizontal cursor.

Definition at line 1216 of file TEScreen.cpp.

References horzCursor.

int TEScreen::getLines  )  [inline]
 

return the number of lines.

Definition at line 142 of file TEScreen.h.

int TEScreen::getLines  )  [inline]
 

return the number of lines.

Definition at line 142 of file TEScreen.h.

Referenced by TEmulation::showBulk().

BOOL TEScreen::getMode int  n  ) 
 

BOOL TEScreen::getMode int  m  ) 
 

Return the setting a specific mode.

Definition at line 344 of file TEScreen.cpp.

References currParm, and ScreenParm::mode.

Referenced by getCookedImage(), NewLine(), setCursorY(), setMargins(), and ShowCharacter().

QString TEScreen::getSelText const BOOL  preserve_line_breaks  ) 
 

QString TEScreen::getSelText const BOOL  preserve_line_breaks  ) 
 

Definition at line 1009 of file TEScreen.cpp.

References ca::c, columns, d, HistoryScroll::getCell(), HistoryScroll::getLineLen(), HistoryScroll::getLines(), hist, i, image, loc, QString::null, s, sel_begin, sel_BR, and sel_TL.

Referenced by getHistory(), and TEmulation::setSelection().

bool TEScreen::hasScroll  ) 
 

bool TEScreen::hasScroll  ) 
 

Definition at line 1233 of file TEScreen.cpp.

References HistoryScroll::hasScroll(), and hist.

Referenced by addHistLine(), and TEmulation::history().

void TEScreen::helpAlign  ) 
 

void TEScreen::helpAlign  ) 
 

fill screen with 'E' This is to aid screen alignment

Definition at line 865 of file TEScreen.cpp.

References clearImage(), columns, lines, and loc.

Referenced by TEmuVt102::tau().

void TEScreen::home  ) 
 

void TEScreen::home  ) 
 

set cursor to the `left upper' corner of the screen (1,1).

Definition at line 753 of file TEScreen.cpp.

References cuX, and cuY.

Referenced by clear().

void TEScreen::index  ) 
 

void TEScreen::index  ) 
 

Move the cursor down one line.

If cursor is on bottom margin, the region between the actual top and bottom margin is scrolled up instead.

Definition at line 197 of file TEScreen.cpp.

References addHistLine(), bmargin, cuY, lines, scrollUp(), and tmargin.

Referenced by NewLine(), NextLine(), and TEmuVt102::tau().

void TEScreen::initTabStops  )  [private]
 

void TEScreen::initTabStops  )  [private]
 

Definition at line 624 of file TEScreen.cpp.

References columns, i, and tabstops.

Referenced by resizeImage(), and TEScreen().

void TEScreen::insertChars int  n  ) 
 

void TEScreen::insertChars int  n  ) 
 

insert `n' spaces at the cursor position.

The cursor is not moved by the operation.

Definition at line 273 of file TEScreen.cpp.

References clearImage(), columns, cuX, cuY, loc, moveImage(), and p.

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

void TEScreen::insertLines int  n  ) 
 

void TEScreen::insertLines int  n  ) 
 

insert `n' lines at the cursor position.

The cursor is not moved by the operation.

Definition at line 298 of file TEScreen.cpp.

References cuY, and scrollDown().

Referenced by TEmuVt102::tau().

void TEScreen::moveImage int  dst,
int  loca,
int  loce
[private]
 

void TEScreen::moveImage int  dst,
int  loca,
int  loce
[private]
 

move image between (including) `loca' and `loce' to 'dst'.

This is an internal helper functions. The parameter types are internal addresses of within the screen image and make use of the way how the screen matrix is mapped to the image vector.

Definition at line 827 of file TEScreen.cpp.

References image.

Referenced by deleteChars(), insertChars(), scrollDown(), and scrollUp().

void TEScreen::NewLine  ) 
 

void TEScreen::NewLine  ) 
 

This behaves either as IND (Screen::Index) or as NEL (Screen::NextLine) depending on the NewLine Mode (LNM). This mode also affects the key sequence returned for newline ([CR]LF).

Definition at line 640 of file TEScreen.cpp.

References getMode(), index(), MODE_NewLine, and Return().

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

void TEScreen::NextLine  ) 
 

void TEScreen::NextLine  ) 
 

Move the cursor to the begin of the next line.

If cursor is on bottom margin, the region between the actual top and bottom margin is scrolled up.

Definition at line 232 of file TEScreen.cpp.

References index(), and Return().

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

void TEScreen::reset  ) 
 

void TEScreen::reset  ) 
 

Definition at line 563 of file TEScreen.cpp.

References bmargin, clear(), lines, MODE_Cursor, MODE_Insert, MODE_NewLine, MODE_Origin, MODE_Screen, MODE_Wrap, Config::readBoolEntry(), resetMode(), saveCursor(), saveMode(), setDefaultRendition(), Config::setGroup(), setMode(), and tmargin.

Referenced by TEmuVt102::reset(), and TEScreen().

void TEScreen::resetMode int  n  ) 
 

void TEScreen::resetMode int  m  ) 
 

Reset a specific mode.

Definition at line 319 of file TEScreen.cpp.

References currParm, cuX, cuY, FALSE, ScreenParm::mode, and MODE_Origin.

Referenced by reset(), and TEmuVt102::resetMode().

void TEScreen::resetRendition int  rendition  ) 
 

void TEScreen::resetRendition int  re  ) 
 

reset rendition mode

Definition at line 910 of file TEScreen.cpp.

References cu_re, and effectiveRendition().

Referenced by TEmuVt102::tau().

void TEScreen::resizeImage int  new_lines,
int  new_columns
 

void TEScreen::resizeImage int  new_lines,
int  new_columns
 

Assing a new size to the screen.

The topmost left position is maintained, while lower lines or right hand side columns might be removed or filled with spaces to fit the new size.

The region setting is reset to the whole screen and the tab positions reinitialized.

Definition at line 388 of file TEScreen.cpp.

References addHistLine(), ca::b, bmargin, ca::c, clearSelection(), columns, cuX, cuY, DEFAULT_BACK_COLOR, DEFAULT_FORE_COLOR, DEFAULT_RENDITION, ca::f, horzCursor, i, image, initTabStops(), lines, loc, ca::r, scrollUp(), tmargin, Opie::MM::x, and Opie::MM::y.

Referenced by TEmulation::onImageSizeChange().

void TEScreen::restoreCursor  ) 
 

void TEScreen::restoreCursor  ) 
 

Restore the cursor position and the rendition attribute settings.

Definition at line 362 of file TEScreen.cpp.

References columns, cu_bg, cu_fg, cu_re, cuX, cuY, effectiveRendition(), lines, sa_cu_bg, sa_cu_fg, sa_cu_re, sa_cuX, and sa_cuY.

Referenced by TEmuVt102::restoreCursor().

void TEScreen::restoreMode int  n  ) 
 

void TEScreen::restoreMode int  m  ) 
 

Restore a specific mode.

Definition at line 337 of file TEScreen.cpp.

References currParm, ScreenParm::mode, and saveParm.

Referenced by TEmuVt102::tau().

void TEScreen::Return  ) 
 

void TEScreen::Return  ) 
 

set cursor to the begin of the current line.

Definition at line 762 of file TEScreen.cpp.

References cuX.

Referenced by NewLine(), NextLine(), TEmulation::onRcvChar(), and TEmuVt102::tau().

void TEScreen::reverseIndex  ) 
 

void TEScreen::reverseIndex  ) 
 

Move the cursor up one line.

If cursor is on the top margin, the region between the actual top and bottom margin is scrolled down instead.

Definition at line 216 of file TEScreen.cpp.

References cuY, scrollDown(), and tmargin.

Referenced by TEmuVt102::tau().

void TEScreen::reverseRendition ca p  )  [private]
 

void TEScreen::reverseRendition ca p  )  [private]
 

Definition at line 469 of file TEScreen.cpp.

References ca::b, ca::f, and f.

Referenced by getCookedImage().

void TEScreen::saveCursor  ) 
 

void TEScreen::saveCursor  ) 
 

Save the cursor position and the rendition attribute settings.

Definition at line 351 of file TEScreen.cpp.

References cu_bg, cu_fg, cu_re, cuX, cuY, sa_cu_bg, sa_cu_fg, sa_cu_re, sa_cuX, and sa_cuY.

Referenced by reset(), and TEmuVt102::saveCursor().

void TEScreen::saveMode int  n  ) 
 

void TEScreen::saveMode int  m  ) 
 

Save a specific mode.

Definition at line 330 of file TEScreen.cpp.

References currParm, ScreenParm::mode, and saveParm.

Referenced by reset().

void TEScreen::scrollDown int  from,
int  i
[private]
 

void TEScreen::scrollDown int  from,
int  n
[private]
 

scroll down `n' lines within current region. The `n' new lines are cleared.

See also:
setRegion

scrollUp

Definition at line 712 of file TEScreen.cpp.

References bmargin, clearImage(), columns, loc, and moveImage().

Referenced by insertLines(), and reverseIndex().

void TEScreen::scrollUp int  from,
int  i
[private]
 

void TEScreen::scrollUp int  from,
int  n
[private]
 

scroll up `n' lines within current region. The `n' new lines are cleared.

See also:
setRegion

scrollDown

Definition at line 698 of file TEScreen.cpp.

References bmargin, clearImage(), columns, loc, and moveImage().

Referenced by deleteLines(), index(), and resizeImage().

void TEScreen::setBackColor int  bgcolor  ) 
 

void TEScreen::setBackColor int  bgcolor  ) 
 

Definition at line 939 of file TEScreen.cpp.

References cu_bg, and effectiveRendition().

Referenced by TEmuVt102::tau().

void TEScreen::setBackColorToDefault  ) 
 

void TEScreen::setBackColorToDefault  ) 
 

Definition at line 948 of file TEScreen.cpp.

References cu_bg, DEFAULT_BACK_COLOR, and effectiveRendition().

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

void TEScreen::setCursorX int  x  ) 
 

void TEScreen::setCursorX int  x  ) 
 

Set the cursor to x-th line.

Definition at line 734 of file TEScreen.cpp.

References columns, and cuX.

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

void TEScreen::setCursorY int  y  ) 
 

void TEScreen::setCursorY int  y  ) 
 

Set the cursor to y-th line.

Definition at line 743 of file TEScreen.cpp.

References cuY, getMode(), lines, MODE_Origin, and tmargin.

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

void TEScreen::setCursorYX int  y,
int  x
 

void TEScreen::setCursorYX int  y,
int  x
 

position the cursor to a specific line and column.

Definition at line 727 of file TEScreen.cpp.

References setCursorX(), and setCursorY().

Referenced by TEmuVt102::tau().

void TEScreen::setDefaultRendition  ) 
 

void TEScreen::setDefaultRendition  ) 
 

Definition at line 919 of file TEScreen.cpp.

References cu_re, DEFAULT_RENDITION, effectiveRendition(), setBackColorToDefault(), and setForeColorToDefault().

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

void TEScreen::setForeColor int  fgcolor  ) 
 

void TEScreen::setForeColor int  fgcolor  ) 
 

Definition at line 930 of file TEScreen.cpp.

References cu_fg, and effectiveRendition().

Referenced by TEmuVt102::tau().

void TEScreen::setForeColorToDefault  ) 
 

void TEScreen::setForeColorToDefault  ) 
 

Definition at line 957 of file TEScreen.cpp.

References cu_fg, DEFAULT_FORE_COLOR, and effectiveRendition().

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

void TEScreen::setHistCursor int  cursor  ) 
 

set the position of the history cursor.

void TEScreen::setHistCursor int  cursor  ) 
 

set the position of the history cursor.

Definition at line 1195 of file TEScreen.cpp.

References HistoryScroll::getLines(), hist, and histCursor.

Referenced by TEmulation::onHistoryCursorChange(), TEmuVt102::onKeyPress(), and TEmulation::onKeyPress().

void TEScreen::setHorzCursor int  cursor  ) 
 

set the position of the horizontal cursor.

Definition at line 1206 of file TEScreen.cpp.

References horzCursor.

Referenced by TEmulation::onHorzCursorChange().

void TEScreen::setMargins int  t,
int  b
 

void TEScreen::setMargins int  top,
int  bot
 

Set top and bottom margin.

Definition at line 172 of file TEScreen.cpp.

References bmargin, cuX, cuY, getMode(), lines, MODE_Origin, and tmargin.

Referenced by TEmuVt102::tau().

void TEScreen::setMode int  n  ) 
 

void TEScreen::setMode int  m  ) 
 

Set a specific mode.

Definition at line 308 of file TEScreen.cpp.

References currParm, cuX, cuY, ScreenParm::mode, MODE_Origin, tmargin, and TRUE.

Referenced by reset(), and TEmuVt102::setMode().

void TEScreen::setRendition int  rendition  ) 
 

void TEScreen::setRendition int  re  ) 
 

set rendition mode

Definition at line 900 of file TEScreen.cpp.

References cu_re, and effectiveRendition().

void TEScreen::setScroll bool  on  ) 
 

void TEScreen::setScroll bool  on  ) 
 

Definition at line 1226 of file TEScreen.cpp.

References clearSelection(), hist, histCursor, and HistoryScroll::setScroll().

Referenced by TEmulation::setHistory().

void TEScreen::setSelBeginXY const int  x,
const int  y
 

void TEScreen::setSelBeginXY const int  x,
const int  y
 

Definition at line 976 of file TEScreen.cpp.

References HistoryScroll::getLines(), hist, histCursor, loc, sel_begin, sel_BR, and sel_TL.

Referenced by TEmulation::onSelectionBegin().

void TEScreen::setSelExtentXY const int  x,
const int  y
 

void TEScreen::setSelExtentXY const int  x,
const int  y
 

Definition at line 986 of file TEScreen.cpp.

References columns, HistoryScroll::getLines(), hist, histCursor, l, loc, sel_begin, sel_BR, and sel_TL.

Referenced by getHistory(), and TEmulation::onSelectionExtend().

void TEScreen::ShowCharacter unsigned short  c  ) 
 

void TEScreen::ShowCharacter unsigned short  c  ) 
 

Definition at line 663 of file TEScreen.cpp.

References ca::b, ca::c, checkSelection(), columns, cuX, cuY, ef_bg, ef_fg, ef_re, ca::f, getMode(), i, image, insertChars(), loc, MODE_Insert, MODE_Wrap, NextLine(), and ca::r.

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

void TEScreen::Tabulate  ) 
 

void TEScreen::Tabulate  ) 
 

Definition at line 607 of file TEScreen.cpp.

References columns, cursorRight(), cuX, and tabstops.

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


Member Data Documentation

int TEScreen::bmargin [private]
 

Definition at line 219 of file TEScreen.h.

Referenced by cursorDown(), index(), reset(), resizeImage(), scrollDown(), scrollUp(), and setMargins().

int TEScreen::columns [private]
 

Definition at line 197 of file TEScreen.h.

Referenced by addHistLine(), changeTabStop(), clearEntireLine(), clearEntireScreen(), clearTabStops(), clearToEndOfLine(), clearToEndOfScreen(), cursorDown(), cursorLeft(), cursorRight(), cursorUp(), deleteChars(), eraseChars(), getCookedImage(), getSelText(), helpAlign(), initTabStops(), insertChars(), resizeImage(), restoreCursor(), scrollDown(), scrollUp(), setCursorX(), setSelExtentXY(), ShowCharacter(), and Tabulate().

UINT8 TEScreen::cu_bg [private]
 

Definition at line 213 of file TEScreen.h.

Referenced by effectiveRendition(), restoreCursor(), saveCursor(), setBackColor(), and setBackColorToDefault().

UINT8 TEScreen::cu_fg [private]
 

Definition at line 212 of file TEScreen.h.

Referenced by effectiveRendition(), restoreCursor(), saveCursor(), setForeColor(), and setForeColorToDefault().

UINT8 TEScreen::cu_re [private]
 

Definition at line 214 of file TEScreen.h.

Referenced by effectiveRendition(), resetRendition(), restoreCursor(), saveCursor(), setDefaultRendition(), and setRendition().

ScreenParm TEScreen::currParm [private]
 

Definition at line 223 of file TEScreen.h.

Referenced by getMode(), resetMode(), restoreMode(), saveMode(), and setMode().

int TEScreen::cuX [private]
 

Definition at line 207 of file TEScreen.h.

Referenced by BackSpace(), changeTabStop(), clearToBeginOfLine(), clearToBeginOfScreen(), clearToEndOfLine(), clearToEndOfScreen(), cursorDown(), cursorLeft(), cursorRight(), cursorUp(), deleteChars(), eraseChars(), getCookedImage(), getCursorX(), home(), insertChars(), resetMode(), resizeImage(), restoreCursor(), Return(), saveCursor(), setCursorX(), setMargins(), setMode(), ShowCharacter(), and Tabulate().

int TEScreen::cuY [private]
 

Definition at line 208 of file TEScreen.h.

Referenced by BackSpace(), clearEntireLine(), clearToBeginOfLine(), clearToBeginOfScreen(), clearToEndOfLine(), clearToEndOfScreen(), cursorDown(), cursorUp(), deleteChars(), deleteLines(), eraseChars(), getCookedImage(), getCursorY(), home(), index(), insertChars(), insertLines(), resetMode(), resizeImage(), restoreCursor(), reverseIndex(), saveCursor(), setCursorY(), setMargins(), setMode(), and ShowCharacter().

UINT8 TEScreen::ef_bg [private]
 

Definition at line 238 of file TEScreen.h.

Referenced by clearImage(), effectiveRendition(), and ShowCharacter().

UINT8 TEScreen::ef_fg [private]
 

Definition at line 237 of file TEScreen.h.

Referenced by clearImage(), effectiveRendition(), and ShowCharacter().

UINT8 TEScreen::ef_re [private]
 

Definition at line 239 of file TEScreen.h.

Referenced by clearImage(), effectiveRendition(), and ShowCharacter().

HistoryScroll TEScreen::hist [private]
 

Definition at line 203 of file TEScreen.h.

Referenced by addHistLine(), checkSelection(), clearImage(), getCookedImage(), getHistLines(), getSelText(), hasScroll(), setHistCursor(), setScroll(), setSelBeginXY(), and setSelExtentXY().

int TEScreen::histCursor [private]
 

Definition at line 202 of file TEScreen.h.

Referenced by addHistLine(), getCookedImage(), getHistCursor(), setHistCursor(), setScroll(), setSelBeginXY(), setSelExtentXY(), and TEScreen().

int TEScreen::horzCursor [private]
 

Definition at line 209 of file TEScreen.h.

Referenced by getHorzCursor(), resizeImage(), setHorzCursor(), and TEScreen().

ca* TEScreen::image [private]
 

Definition at line 198 of file TEScreen.h.

ca* TEScreen::image [private]
 

Definition at line 202 of file TEScreen.h.

Referenced by addHistLine(), BackSpace(), clearImage(), getCookedImage(), getSelText(), moveImage(), resizeImage(), ShowCharacter(), TEScreen(), and ~TEScreen().

int TEScreen::lines [private]
 

Definition at line 196 of file TEScreen.h.

Referenced by clearEntireScreen(), clearToEndOfScreen(), cursorDown(), getCookedImage(), helpAlign(), index(), reset(), resizeImage(), restoreCursor(), setCursorY(), and setMargins().

UINT8 TEScreen::sa_cu_bg [private]
 

Definition at line 254 of file TEScreen.h.

Referenced by restoreCursor(), and saveCursor().

UINT8 TEScreen::sa_cu_fg [private]
 

Definition at line 253 of file TEScreen.h.

Referenced by restoreCursor(), and saveCursor().

UINT8 TEScreen::sa_cu_re [private]
 

Definition at line 252 of file TEScreen.h.

Referenced by restoreCursor(), and saveCursor().

int TEScreen::sa_cuX [private]
 

Definition at line 247 of file TEScreen.h.

Referenced by restoreCursor(), and saveCursor().

int TEScreen::sa_cuY [private]
 

Definition at line 248 of file TEScreen.h.

Referenced by restoreCursor(), and saveCursor().

ScreenParm TEScreen::saveParm [private]
 

Definition at line 258 of file TEScreen.h.

Referenced by restoreMode(), and saveMode().

int TEScreen::sel_begin [private]
 

Definition at line 231 of file TEScreen.h.

Referenced by checkSelection(), clearSelection(), getHistory(), getSelText(), setSelBeginXY(), and setSelExtentXY().

int TEScreen::sel_BR [private]
 

Definition at line 233 of file TEScreen.h.

Referenced by checkSelection(), clearImage(), clearSelection(), getCookedImage(), getHistory(), getSelText(), setSelBeginXY(), and setSelExtentXY().

int TEScreen::sel_TL [private]
 

Definition at line 232 of file TEScreen.h.

Referenced by checkSelection(), clearImage(), clearSelection(), getCookedImage(), getHistory(), getSelText(), setSelBeginXY(), and setSelExtentXY().

bool* TEScreen::tabstops [private]
 

Definition at line 227 of file TEScreen.h.

bool* TEScreen::tabstops [private]
 

Definition at line 233 of file TEScreen.h.

Referenced by changeTabStop(), clearTabStops(), initTabStops(), Tabulate(), TEScreen(), and ~TEScreen().

int TEScreen::tmargin [private]
 

Definition at line 218 of file TEScreen.h.

Referenced by cursorUp(), index(), reset(), resizeImage(), reverseIndex(), setCursorY(), setMargins(), and setMode().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:34 2005 for OPIE by  doxygen 1.4.2