| 968 | } |
| 969 | |
| 970 | int Console::lineedit(const std::string & prompt, std::string & output, CommandHistory & ch) |
| 971 | { |
| 972 | std::lock_guard<std::recursive_mutex> lock{*wlock}; |
| 973 | int ret = Console::SHUTDOWN; |
| 974 | if(inited) { |
| 975 | ret = d->lineedit(prompt,output,wlock,ch); |
| 976 | if (ret == Console::SHUTDOWN) { |
| 977 | // kill the thing |
| 978 | if(d->rawmode) |
| 979 | d->disable_raw(); |
| 980 | d->print("\n"); |
| 981 | inited = false; |
| 982 | } |
| 983 | } |
| 984 | return ret; |
| 985 | } |
| 986 | |
| 987 | void Console::msleep (unsigned int msec) |
| 988 | { |
no test coverage detected