MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ConClearBuffer

Function ConClearBuffer

src/console_cmds.cpp:659–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659static bool ConClearBuffer(std::span<std::string_view> argv)
660{
661 if (argv.empty()) {
662 IConsolePrint(CC_HELP, "Clear the console buffer. Usage: 'clear'.");
663 return true;
664 }
665
666 IConsoleClearBuffer();
667 SetWindowDirty(WC_CONSOLE, 0);
668 return true;
669}
670
671
672/**********************************

Callers

nothing calls this directly

Calls 4

IConsoleClearBufferFunction · 0.85
SetWindowDirtyFunction · 0.85
IConsolePrintFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected