FACT++  1.0
void Shell::Run ( const char *  prompt = "")
inlinevirtual

This implements a loop over readline calls. A prompt to issue can be given. If it is NULL, the prompt is retrieved from GetUpdatePrompt(). It is updated regularly by means of calls to GetUpdatePrompt() from EventHook(). If Prompt() returns with "quit" or ".q" the loop is exited. If ".qqq" is entered exit(-1) is called. In case of ".qqqqqq" abort(). Both ways to exit the program are not recommended. Empty inputs are ignored. After that Process() with the returned string is called. If Process returns true the input is not counted and not added to the history, otherwise the line counter is increased and the input is added to the history.

Parameters
promptThe prompt to be issued or NULL if GetUPdatePrompt should be used instead.

Reimplemented from Readline.

Definition at line 66 of file Shell.h.

References Readline::GetName(), ReadlineColor::PrintBootMsg(), and Readline::Run().

67  {
70  }
WindowLog win
pointer to our glocal object to get the static member functions into scope
Definition: Shell.h:17
virtual void Run(const char *prompt=0)
Definition: Readline.cc:1406
bool PrintBootMsg(std::ostream &out, const std::string &name, bool interactive=true)
std::string GetName() const
Definition: Readline.h:88

+ Here is the call graph for this function: