summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/grfio.c4
-rw-r--r--src/common/showmsg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c
index d3d39c106..507b66cb3 100644
--- a/src/common/grfio.c
+++ b/src/common/grfio.c
@@ -614,7 +614,7 @@ static int grfio_entryread(char *gfname,int gentry)
fp = fopen(gfname,"rb");
if(fp==NULL) {
- sprintf(tmp_output,"GRF Data File not found: '\033[1;29m%s\033[0;0m'.\n",gfname);
+ sprintf(tmp_output,"GRF Data File not found: '"CL_WHITE"%s"CL_RESET"'.\n",gfname);
ShowWarning(tmp_output);
return 1; // 1:not found error
}
@@ -926,7 +926,7 @@ void grfio_init(char *fname)
}
fclose(data_conf);
- sprintf(tmp_output,"Done reading '\033[1;29m%s\033[0;0m'.\n",fname);
+ sprintf(tmp_output,"Done reading '"CL_WHITE"%s"CL_RESET"'.\n",fname);
ShowStatus(tmp_output);
} // end of reading grf-files.txt
diff --git a/src/common/showmsg.c b/src/common/showmsg.c
index 32b9dd22c..903fb583b 100644
--- a/src/common/showmsg.c
+++ b/src/common/showmsg.c
@@ -23,7 +23,7 @@ int _ShowMessage(const char *string, enum msg_type flag){ // by MC Cameri
break;
/* //Do we really need this now? [MC Cameri]
case MSG_SQL: //Bright Violet (For dumping out anything related with SQL)
- strcpy(prefix,"\033[1;35m[SQL]\033[0;0m:");
+ strcpy(prefix,CL_MAGENTA"[SQL]"CL_RESET":");
break;
*/
case MSG_INFORMATION: //Bright White (Variable information)
@@ -60,7 +60,7 @@ int _ShowMessage(const char *string, enum msg_type flag){ // by MC Cameri
FILE *fp;
fp=fopen(OUTPUT_MESSAGES_LOG,"a");
if (fp == NULL) {
- printf("\033[1;31m[Error]\033[0;0m: Could not open \033[1;29m%s\033[0;0m, file not found.\n",OUTPUT_MESSAGES_LOG);
+ printf(CL_RED"[Error]"CL_RESET": Could not open '"CL_WHITE"%s"CL_RESET"', file not found.\n",OUTPUT_MESSAGES_LOG);
fflush(stdout);
return;
}