FACT++
1.0
|
|
virtual |
This function is a wrapper around the call to readline. It encapsultes the return buffer into a std::string and deletes the memory allocated by readline. Furthermore, it removes leading and trailing whitespaces before return the result. Before the function returns Shutdown() is called (as opposed to Startup when readline starts)
prompt | The prompt which is to be shown by the readline libarary. it is directly given to the call to readline. |
Definition at line 1281 of file Readline.cc.
References Memory::free(), Shutdown(), str, and Tools::Trim().
Referenced by GetUpdatePrompt(), and Run().