From cbaafa9be5be898a04ad596c5724097490a7494d Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Sat, 20 Aug 2016 12:14:14 +0200 Subject: [PATCH] Core/Console: rename console --- src/worldserver/CommandLine/CliRunnable.cpp | 10 +++++----- src/worldserver/RemoteAccess/RASocket.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/worldserver/CommandLine/CliRunnable.cpp b/src/worldserver/CommandLine/CliRunnable.cpp index 169b5a4db..52edd49ef 100644 --- a/src/worldserver/CommandLine/CliRunnable.cpp +++ b/src/worldserver/CommandLine/CliRunnable.cpp @@ -97,7 +97,7 @@ void utf8print(void* /*arg*/, const char* str) void commandFinished(void*, bool /*success*/) { - printf("TC> "); + printf("AC> "); fflush(stdout); } @@ -131,7 +131,7 @@ void CliRunnable::run() // print this here the first time // later it will be printed after command queue updates - printf("TC>"); + printf("AC>"); ///- As long as the World is running (no World::m_stopEvent), get the command line and handle it while (!World::IsStopped()) @@ -144,7 +144,7 @@ void CliRunnable::run() char commandbuf[256]; command_str = fgets(commandbuf, sizeof(commandbuf), stdin); #else - command_str = readline("TC>"); + command_str = readline("AC>"); rl_bind_key('\t', rl_complete); #endif @@ -160,7 +160,7 @@ void CliRunnable::run() if (!*command_str) { #if PLATFORM == PLATFORM_WINDOWS - printf("TC>"); + printf("AC>"); #else free(command_str); #endif @@ -171,7 +171,7 @@ void CliRunnable::run() if (!consoleToUtf8(command_str, command)) // convert from console encoding to utf8 { #if PLATFORM == PLATFORM_WINDOWS - printf("TC>"); + printf("AC>"); #else free(command_str); #endif diff --git a/src/worldserver/RemoteAccess/RASocket.cpp b/src/worldserver/RemoteAccess/RASocket.cpp index 299d3d057..dc445d550 100644 --- a/src/worldserver/RemoteAccess/RASocket.cpp +++ b/src/worldserver/RemoteAccess/RASocket.cpp @@ -355,7 +355,7 @@ int RASocket::svc(void) for (;;) { // show prompt - if (send("TC> ") == -1) + if (send("AC> ") == -1) return -1; std::string line;