
Public Member Functions | |
| virtual void | ConsoleOut (const CHAR *text, UCELL textLength) |
| void | SetTestInput (const char *input) |
| virtual CELL | ConsoleIn () |
ForthIo implementation used for testing. This returns pre-determined text for ConsolIn which is set via SetTestInput.
Definition at line 109 of file forthtest.cpp.
Display a text string on the console. This is called by the forth words TYPE and EMIT.
| text | Pointer to string. | |
| textLength | Number of characters in string. |
Implements ForthIo.
Definition at line 120 of file forthtest.cpp.
| void TestForthIo::SetTestInput | ( | const char * | input | ) |
Set the sequence of characters which are to be returned by ConsoleIn.
| input | C string (NUL terminated list) of character values. |
Definition at line 130 of file forthtest.cpp.
| virtual CELL TestForthIo::ConsoleIn | ( | ) | [virtual] |
Get a single character from the console input. This is called by the forth word KEY.
Implements ForthIo.
Definition at line 135 of file forthtest.cpp.
1.6.1