#include <ctaskterminal.h>


Public Member Functions | |
| virtual void | clearAttributes () |
| CCommunication * | comm () |
| CTaskTerminal (CCommunication *comm) | |
| virtual void | cursorMoveAbsolute (CMachine::ubit32 x, CMachine::ubit32 y) |
| virtual void | cursorMoveBackward (CMachine::ubit32 n) |
| virtual void | cursorMoveDown (CMachine::ubit32 n) |
| virtual void | cursorMoveForward (CMachine::ubit32 n) |
| virtual void | cursorMoveUp (CMachine::ubit32 n) |
| virtual void | eraseDisplay () |
| virtual void | eraseLine () |
| virtual CMachine::bit32 | fault () |
| bool | fullDuplex () |
| virtual CMachine::bit32 | init () |
| virtual bool | iowait () |
| virtual CMachine::bit32 | run () |
| virtual void | setAttributeReverseVideo () |
| virtual CMachine::bit32 | start () |
| virtual CMachine::bit32 | stop () |
| virtual | ~CTaskTerminal () |
Protected Member Functions | |
| CMachine::bit8 * | CSI () |
Private Attributes | |
| CCommunication * | mComm |
| bool | mFullDuplex |
Definition at line 199 of file ctaskterminal.h.
| PikeAero::CTaskTerminal::CTaskTerminal | ( | CCommunication * | comm | ) |
Definition at line 25 of file ctaskterminal.cpp.
00026 : ITask() 00027 , mComm(comm) 00028 , mFullDuplex(true) 00029 { 00030 }
| PikeAero::CTaskTerminal::~CTaskTerminal | ( | ) | [virtual] |
| void PikeAero::CTaskTerminal::clearAttributes | ( | ) | [virtual] |
Clear text attributes.
Definition at line 178 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().
Referenced by PikeAero::CTaskConsole::monitor().


| CCommunication* PikeAero::CTaskTerminal::comm | ( | ) | [inline] |
Definition at line 292 of file ctaskterminal.h.
References mComm.
Referenced by clearAttributes(), PikeAero::CTaskConsole::commandHelp(), cursorMoveAbsolute(), cursorMoveBackward(), cursorMoveDown(), cursorMoveForward(), cursorMoveUp(), PikeAero::CTaskConsole::drawCommandPrompt(), PikeAero::CTaskConsole::drawStatusBar(), eraseDisplay(), eraseLine(), PikeAero::CTaskConsolePacket::monitor(), PikeAero::CTaskConsole::monitor(), PikeAero::CTaskConsolePacket::run(), PikeAero::CTaskConsole::run(), setAttributeReverseVideo(), and PikeAero::CTaskConsolePacket::start().
00292 {return mComm;}

| CMachine::bit8* PikeAero::CTaskTerminal::CSI | ( | ) | [inline, protected] |
Definition at line 295 of file ctaskterminal.h.
Referenced by clearAttributes(), cursorMoveAbsolute(), cursorMoveBackward(), cursorMoveDown(), cursorMoveForward(), cursorMoveUp(), eraseDisplay(), eraseLine(), and setAttributeReverseVideo().

| void PikeAero::CTaskTerminal::cursorMoveAbsolute | ( | CMachine::ubit32 | x, | |
| CMachine::ubit32 | y | |||
| ) | [virtual] |
Moves the cursor to the specified position (coordinates). If you do not specify a position, the cursor moves to the home position at the upper-left corner of the screen (line 0, column 0). This escape sequence works the same way as the following Cursor Position escape sequence.
Definition at line 101 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().
Referenced by PikeAero::CTaskConsole::drawStatusBar(), and PikeAero::CTaskConsole::monitor().


| void PikeAero::CTaskTerminal::cursorMoveBackward | ( | CMachine::ubit32 | n | ) | [virtual] |
Moves the cursor back by the specified number of columns without changing lines. If the cursor is already in the leftmost column, ANSI.SYS ignores this sequence.
Definition at line 141 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().

| void PikeAero::CTaskTerminal::cursorMoveDown | ( | CMachine::ubit32 | n | ) | [virtual] |
Moves the cursor down by the specified number of lines without changing columns. If the cursor is already on the bottom line, ANSI.SYS ignores this sequence.
Definition at line 121 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().

| void PikeAero::CTaskTerminal::cursorMoveForward | ( | CMachine::ubit32 | n | ) | [virtual] |
Moves the cursor forward by the specified number of columns without changing lines. If the cursor is already in the rightmost column, ANSI.SYS ignores this sequence.
Definition at line 131 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().

| void PikeAero::CTaskTerminal::cursorMoveUp | ( | CMachine::ubit32 | n | ) | [virtual] |
Moves the cursor up by the specified number of lines without changing columns. If the cursor is already on the top line, ANSI.SYS ignores this sequence.
Definition at line 111 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().

| void PikeAero::CTaskTerminal::eraseDisplay | ( | ) | [virtual] |
Clears the screen and moves the cursor to the home position (line 0, column 0).
Definition at line 150 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().
Referenced by PikeAero::CTaskConsole::commandTop().


| void PikeAero::CTaskTerminal::eraseLine | ( | ) | [virtual] |
Clears all characters from the cursor position to the end of the line (including the character at the cursor position).
Definition at line 160 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().
Referenced by PikeAero::CTaskConsole::drawCommandPrompt(), PikeAero::CTaskConsole::drawStatusBar(), and PikeAero::CTaskConsole::monitor().


| CMachine::bit32 PikeAero::CTaskTerminal::fault | ( | ) | [virtual] |
The CTaskScheduler will call the fault() method when a fault code was returned by any of the task's other methods.
Reimplemented from PikeAero::ITask.
Reimplemented in PikeAero::CTaskConsole, PikeAero::CTaskConsoleBase, and PikeAero::CTaskConsolePacket.
Definition at line 80 of file ctaskterminal.cpp.
| bool PikeAero::CTaskTerminal::fullDuplex | ( | ) | [inline] |
| CMachine::bit32 PikeAero::CTaskTerminal::init | ( | ) | [virtual] |
called exactly once. perform task initialization such as initializing private variable. other tasks are not guaranteed so do not interract with other tasks at this stage.
Reimplemented from PikeAero::ITask.
Reimplemented in PikeAero::CTaskConsole, PikeAero::CTaskConsoleBase, and PikeAero::CTaskConsolePacket.
Definition at line 42 of file ctaskterminal.cpp.
References PikeAero::ITask::PriorityLow, and PikeAero::ITask::setPriority().
00043 { 00044 setPriority( ITask::PriorityLow ); 00045 return 0; 00046 }

| bool PikeAero::CTaskTerminal::iowait | ( | ) | [virtual] |
The CTaskScheduler::iowait() method will call the task's iowait method periodically to test if the task is still in an I/O wait state.
Reimplemented from PikeAero::ITask.
Definition at line 90 of file ctaskterminal.cpp.
| CMachine::bit32 PikeAero::CTaskTerminal::run | ( | ) | [virtual] |
called periodically by CTaskScheduler to do a piece of work.
Reimplemented from PikeAero::ITask.
Reimplemented in PikeAero::CTaskConsole, PikeAero::CTaskConsoleBase, and PikeAero::CTaskConsolePacket.
Definition at line 61 of file ctaskterminal.cpp.
| void PikeAero::CTaskTerminal::setAttributeReverseVideo | ( | ) | [virtual] |
Set reverse video.
Definition at line 169 of file ctaskterminal.cpp.
References comm(), CSI(), PikeAero::CString::sprintf(), and PikeAero::CCommunication::tx().
Referenced by PikeAero::CTaskConsole::monitor().


| CMachine::bit32 PikeAero::CTaskTerminal::start | ( | ) | [virtual] |
called exactly once. all tasks are initialized at this point. called just prior to first call to run()
Reimplemented from PikeAero::ITask.
Reimplemented in PikeAero::CTaskConsole, PikeAero::CTaskConsoleBase, and PikeAero::CTaskConsolePacket.
Definition at line 52 of file ctaskterminal.cpp.
| CMachine::bit32 PikeAero::CTaskTerminal::stop | ( | ) | [virtual] |
The CTaskScheduler will call the stop () method after the task was scheduled for cancelation.
Reimplemented from PikeAero::ITask.
Reimplemented in PikeAero::CTaskConsole, PikeAero::CTaskConsoleBase, and PikeAero::CTaskConsolePacket.
Definition at line 70 of file ctaskterminal.cpp.
CCommunication* PikeAero::CTaskTerminal::mComm [private] |
bool PikeAero::CTaskTerminal::mFullDuplex [private] |
1.5.8