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. The result is returned in the given argument containing the prompt. Before the function returns Shutdown() is called (as opposed to Startup when readline starts)
str | The prompt which is to be shown by the readline libarary. it is directly given to the call to readline. The result of the readline call is returned in this string. |
Definition at line 1250 of file Readline.cc.
References Memory::free(), Shutdown(), and Tools::Trim().
Referenced by GetUpdatePrompt().