17 #ifndef HH_SENF_Utils_Termlib_AbstractTerminal_ 18 #define HH_SENF_Utils_Termlib_AbstractTerminal_ 1 63 virtual unsigned width()
const = 0;
64 virtual unsigned height()
const = 0;
66 virtual void write(
char ch) = 0;
virtual void cb_charReceived(char ch)=0
Called whenever a char is received.
virtual unsigned height() const =0
Get current terminal window height.
AbstractTerminal callbacks.
virtual void write(char ch)=0
Write character to terminal.
virtual ~AbstractTerminal()
virtual std::string terminalType()=0
Get the terminal type.
virtual bool cb_init()=0
Called after terminal initialization is complete.
virtual void setCallbacks(Callbacks &cb)=0
Register terminal callbacks.
virtual void cb_windowSizeChanged()=0
Called when the terminal window is changed.
virtual unsigned width() const =0
Get current terminal window width.
Abstract terminal interface.