MCPcopy Create free account
hub / github.com/DFHack/dfhack / lineedit

Method lineedit

library/Console-posix.cpp:970–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970int 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
987void Console::msleep (unsigned int msec)
988{

Callers 7

fIOthreadFunction · 0.45
dfhack_lineedit_syncFunction · 0.45
RunCoreQueryLoopMethod · 0.45
df_liquidsFunction · 0.45
parseRectangleFunction · 0.45
df_tiletypesFunction · 0.45
modeFunction · 0.45

Calls 2

disable_rawMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected