FACT++
1.0
|
|
virtual |
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 in Console, Shell, and ConsoleStream.
Definition at line 1406 of file Readline.cc.
References fLine, GetUpdatePrompt(), ProcessLine(), Prompt(), and str.
Referenced by GetUpdatePrompt(), Shell::Run(), and Console::Run().