TrinityCore
Loading...
Searching...
No Matches
Trinityd

Files

file  CliRunnable.cpp
 
file  CliRunnable.h
 

Functions

static void PrintCliPrefix ()
 
void utf8print (void *, std::string_view str)
 
void commandFinished (void *, bool)
 
void CliThread ()
 Thread start
 

Variables

static constexpr char CLI_PREFIX [] = "TC> "
 

Detailed Description

Function Documentation

◆ CliThread()

void CliThread ( )

Thread start

Definition at line 108 of file CliRunnable.cpp.

References CLI_PREFIX, commandFinished(), World::IsStopped(), PrintCliPrefix(), ReadWinConsole(), RemoveCRLF(), sConfigMgr, SHUTDOWN_EXIT_CODE, World::StopNow(), sWorld, and utf8print().

Referenced by main().

◆ commandFinished()

void commandFinished ( void *  ,
bool   
)

Definition at line 86 of file CliRunnable.cpp.

References PrintCliPrefix().

Referenced by CliThread().

◆ PrintCliPrefix()

static void PrintCliPrefix ( )
inlinestatic

Definition at line 38 of file CliRunnable.cpp.

References CLI_PREFIX.

Referenced by CliThread(), and commandFinished().

◆ utf8print()

void utf8print ( void *  ,
std::string_view  str 
)

Definition at line 74 of file CliRunnable.cpp.

References STRING_VIEW_FMT, STRING_VIEW_FMT_ARG, and WriteWinConsole().

Referenced by CliThread().

Variable Documentation

◆ CLI_PREFIX

constexpr char CLI_PREFIX[] = "TC> "
staticconstexpr

Definition at line 36 of file CliRunnable.cpp.

Referenced by CliThread(), and PrintCliPrefix().