From 7a15a3efe85837d52d950cc9f895eadcc9eb6be1 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 7 Feb 2014 21:40:00 -0800 Subject: Name the terminal escapes --- src/map/map.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/map/map.cpp') diff --git a/src/map/map.cpp b/src/map/map.cpp index 2600412..8a1d8eb 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -16,8 +16,9 @@ #include "../strings/vstring.hpp" #include "../io/cxxstdio.hpp" -#include "../io/write.hpp" #include "../io/read.hpp" +#include "../io/tty.hpp" +#include "../io/write.hpp" #include "../common/config_parse.hpp" #include "../common/core.hpp" @@ -1733,9 +1734,9 @@ int do_init(int argc, ZString *argv) npc_event_do_oninit(); // npcのOnInitイベント実行 if (battle_config.pk_mode == 1) - PRINTF("The server is running in \033[1;31mPK Mode\033[0m.\n"); + PRINTF("The server is running in " SGR_BOLD SGR_RED "PK Mode" SGR_RESET "\n"); - PRINTF("The map-server is \033[1;32mready\033[0m (Server is listening on the port %d).\n\n", + PRINTF("The map-server is " SGR_BOLD SGR_GREEN "ready" SGR_RESET " (Server is listening on the port %d).\n\n", clif_getport()); return 0; -- cgit v1.2.3-60-g2f50