FACT++
1.0
|
|
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.
prompt | The 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().