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

Method clear

library/Commands.cpp:404–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 command_result Commands::clear(color_ostream& con, Core& core, const std::string& first, const std::vector<std::string>& parts)
405 {
406 if (con.can_clear())
407 {
408 con.clear();
409 return CR_OK;
410 }
411 else
412 {
413 con.printerr("No console to clear, or this console does not support clearing.\n");
414 return CR_NEEDS_CONSOLE;
415 }
416 }
417
418 command_result Commands::kill_lua(color_ostream& con, Core& core, const std::string& first, const std::vector<std::string>& parts)
419 {

Callers 15

get_commandsFunction · 0.45
getScriptPathsMethod · 0.45
setArmokToolsMethod · 0.45
split_stringFunction · 0.45
word_wrapFunction · 0.45
prefix_matchesFunction · 0.45
getMemRangesMethod · 0.45
flush_proxyMethod · 0.45
closeMethod · 0.45
TESTFunction · 0.45
RunCoreQueryLoopMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36