10 #ifndef CONSOLE_FUNC_H
11 #define CONSOLE_FUNC_H
40 template <
typename A,
typename ... Args>
41 inline void IConsolePrint(
TextColour colour_code, fmt::format_string<A, Args...> format, A&& first_arg, Args&&... other_args)
45 IConsolePrint(colour_code, fmt::format(format, std::forward<A>(first_arg), std::forward<Args>(other_args)...));
49 void IConsoleCmdExec(
const std::string &command_string,
const uint recurse_count = 0);
void IConsoleCmdExec(const std::string &command_string, const uint recurse_count=0)
Execute a given command passed to us.
void IConsoleClose()
Close the in-game console.
bool IsValidConsoleColour(TextColour c)
Check whether the given TextColour is valid for console usage.
void IConsolePrint(TextColour colour_code, const std::string &string)
Handle the printing of text entered into the console or redirected there by any other means.
Globally used console related types.
IConsoleModes
Modes of the in-game console.
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...