112 size_t cursorPosition);
144 void ReadAndExecuteCommand();
147 bool m_consoleIsInitialized;
148 struct termios m_oldTermios;
149 struct termios m_currentTermios;
153 #endif // CONSOLEUI_H virtual void ShowDebugMessage(const string &msg)
Shows a debug message, by printing it to stdout.
Text-terminal based User Interface.
virtual void ShowStartupBanner()
Prints the text console startup banner.
virtual void InputLineDone()
Executed by the CommandInterpreter when a line has been completed (with a newline).
virtual void Shutdown()
Shuts down the UI.
virtual void Initialize()
Initializes the terminal for blocking, non-echo I/O.
virtual void ShowCommandMessage(const string &command)
Does nothing for the ConsoleUI.
A Component is a node in the configuration tree that makes up an emulation setup. ...
virtual void UpdateUI()
Updates UI items. Not used for ConsoleUI.
ConsoleUI(GXemul *gxemul)
Constructs a text console UI instance.
virtual void RedisplayInputLine(const string &inputline, size_t cursorPosition)
Redisplays the interactive command input line.
virtual void FatalError(const string &msg)
Shows a fatal error message, by printing it to stderr.
Base class for a User Interface.
virtual int MainLoop()
Runs the text console main loop.