Etermal
Embeddable Terminal and shell for OpenGL
|
Base interface for an Etermal frontend. More...
#include <ETerminal.h>
Public Member Functions | |
virtual void | setTakeInput (bool value)=0 |
Sets whether the shell wants input. More... | |
virtual void | clear ()=0 |
Clears the screen. More... | |
virtual void | requestInput (TermInput &callback)=0 |
Each call adds callback to the input queue. More... | |
virtual void | cancelInputRequest (TermInput *callback)=0 |
Removes all instances of a callback from the input queue. More... | |
virtual void | clearInputRequests ()=0 |
Deletes all input requests. More... | |
virtual void | clearInput ()=0 |
Clears the input area (the area after the cursor lock). | |
virtual std::string | pollInput ()=0 |
Get the current input text. More... | |
virtual void | dispText (const std::string &str)=0 |
Append text to the display buffer. More... | |
virtual void | flush ()=0 |
Pushes the display buffer to the display. More... | |
virtual void | softFlush ()=0 |
Pushes the display buffer to the display. More... | |
|
pure virtual |
Removes all instances of a callback from the input queue.
[in] | callback | pointer to the callback to be removed |
Implemented in etm::Terminal.
|
pure virtual |
Clears the screen.
Causes all caches and other data related to the text and screen to be cleared.
Implemented in etm::Terminal.
|
pure virtual |
Deletes all input requests.
Implemented in etm::Terminal.
|
pure virtual |
Append text to the display buffer.
The buffer will not be displayed until flush() is called.
[in] | str | UTF-8 encoded string to be appended to the display buffer |
Implemented in etm::Terminal.
|
pure virtual |
Pushes the display buffer to the display.
Implemented in etm::Terminal.
|
pure virtual |
Get the current input text.
Implemented in etm::Terminal.
|
pure virtual |
Each call adds callback
to the input queue.
Each time input is entered, the callback is called and removed. Be careful of multible calls to this, for you could become locked in.
[in] | callback | The callback to recieve the input text as a UTF-8 encoded string |
Implemented in etm::Terminal.
|
pure virtual |
Sets whether the shell wants input.
If this is false and there are no queued input requests, the terminal will ignore input.
[in] | value | Whether the shell wants input |
Implemented in etm::Terminal.
|
pure virtual |
Pushes the display buffer to the display.
Unlike flush(), does not move the cursor.
Implemented in etm::Terminal.