Removed ANSI error codes from windows terminal error output. Windows does not support them.
See: http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences See: http://stackoverflow.com/questions/22777142/is-there-a-way-to-make-windows-output-ansi-escape-sequences?lq=1
This commit is contained in:
parent
e23734363e
commit
9f9452d023
@ -1778,16 +1778,16 @@ void OS_Windows::print_error(const char* p_function, const char* p_file, int p_l
|
||||
|
||||
switch(p_type) {
|
||||
case ERR_ERROR:
|
||||
print("\E[1;31mERROR: %s: \E[0m\E[1m%s\n", p_function, err_details);
|
||||
print("\E[0;31m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("ERROR: %s: %s\n", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
case ERR_WARNING:
|
||||
print("\E[1;33mWARNING: %s: \E[0m\E[1m%s\n", p_function, err_details);
|
||||
print("\E[0;33m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("WARNING: %s: %s\n", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
case ERR_SCRIPT:
|
||||
print("\E[1;35mSCRIPT ERROR: %s: \E[0m\E[1m", p_function, err_details);
|
||||
print("\E[0;35m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("SCRIPT ERROR: %s: %s", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -433,16 +433,16 @@ void OSWinrt::print_error(const char* p_function, const char* p_file, int p_line
|
||||
|
||||
switch(p_type) {
|
||||
case ERR_ERROR:
|
||||
print("\E[1;31mERROR: %s: \E[0m\E[1m%s\n", p_function, err_details);
|
||||
print("\E[0;31m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("ERROR: %s: %s\n", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
case ERR_WARNING:
|
||||
print("\E[1;33mWARNING: %s: \E[0m\E[1m%s\n", p_function, err_details);
|
||||
print("\E[0;33m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("WARNING: %s: %s\n", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
case ERR_SCRIPT:
|
||||
print("\E[1;35mSCRIPT ERROR: %s: \E[0m\E[1m", p_function, err_details);
|
||||
print("\E[0;35m At: %s:%i.\E[0m\n", p_file, p_line);
|
||||
print("SCRIPT ERROR: %s: %s", p_function, err_details);
|
||||
print(" At: %s:%i.\n", p_file, p_line);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user