113 if (str.substr(0, 3)==
".w ")
116 usleep(stoul(str.substr(3))*1000);
163 std::cout <<
"\r\033[0K";
178 return fContinous ? str.str()+
']' : str.str()+
':'+siz+
']';
void Run(const char *=0)
Just usleep until Stop() was called.
void PrintReadlineError(const std::string &str)
bool PrintGeneralHelp(std::ostream &out, const std::string &name)
void SetNullOutput(bool n=true)
Switch on or off any physical output to the screen (cout or fWindow)
Console(const char *name)
virtual bool Process(const std::string &str)
~Console()
Flush the contents of the buffer before it is destroyed.
size_t GetSizeBacklog() const
Get the current size of the backlog in bytes.
bool PrintCommands(std::ostream &out)
bool Process(const std::string &str)
bool PrintKeyBindings()
Wrapper to call the correspnding function from ReadlineColor.
std::string GetSizeStr() const
virtual void Run(const char *prompt=0)
virtual void Startup()
Default: Do nothing.
bool PrintBootMsg(std::ostream &out, const std::string &name, bool interactive=true)
static void SetExternalInput(const std::string &inp)
void PrintReadlineError(const std::string &str)
bool PrintCommands()
Wrapper to call the correspnding function from ReadlineColor.
bool Process(std::ostream &out, const std::string &str)
static std::string GetExternalInput()
std::string GetLinePrompt() const
bool PrintKeyBindings(std::ostream &out)
void ProcessLine(const std::string &str)
ConsoleStream(const char *name)
void Display(bool empty=false)
Display backlog.
bool PrintGeneralHelp()
Wrapper to call the correspnding function from ReadlineColor.
std::string GetName() const
virtual void EventHook(bool newline=false)
C++ wrapper for GNU's readline library.
void SetBacklog(bool n=true)
Switch on or off any storage in the backlog.