Public Member Functions | Protected Member Functions | Protected Attributes
DtCommandInput Class Reference
+ Collaboration diagram for DtCommandInput:

List of all members.

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

Member Function Documentation

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.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)