Collaboration diagram for DtCommandInput:Public Member Functions | |
| virtual bool | keyboardTick (char *command) |
| Check for keyboard input and copy input to command when Enter is pressed. | |
| virtual void | forceInput () |
| Block on next keyboard tick until Enter is pressed. | |
| virtual void | restoreCommand (int index) |
| Restore the previous command with the given index. | |
| virtual void | eraseLastCommand () |
| Erase last command. | |
| virtual void | printHistory (unsigned int start=0, unsigned int end=65535) const |
| Print history from start to finish, default is entire list. | |
Protected Member Functions | |
| virtual bool | processInput (unsigned int x, char *command) |
| Process input. | |
| virtual int | isEndOfLine (unsigned int x) |
| Is character eol? | |
| virtual void | append (char x) |
| Append character to command line. | |
| virtual void | unAppend (void) |
| Unappend character to command line. | |
| virtual bool | isEmpty () const |
| Is command line empty? | |
| virtual void | saveCommand () |
| Save the command. | |
| virtual void | restorePreviousCommand () |
| Restore the previous command. | |
| virtual void | restoreNextCommand () |
| Restore next command. | |
| virtual void | clearCommand () |
| Clear the current command. | |
Protected Attributes | |
| char | myCommandLine [1024] |
| std::deque< DtString > | myPreviousCommands |
| int | myMaxCommands |
| int | myLastCommandIndex |
| char | myClearLine [1024] |
| bool | myForceInput |
| bool | myPromptOnScreen |
| bool | mySurpressPrompt |
| virtual bool DtCommandInput::keyboardTick | ( | char * | command | ) | [virtual] |
Check for keyboard input and copy input to command when Enter is pressed.
Return true if command (non empty) is ready for processing Note: Non-blocking until input is pending, then blocking until Enter is pressed.