diff options
author | ZuBsPaCe <kurt.rudin@gmx.net> | 2015-11-19 14:26:42 +0100 |
---|---|---|
committer | ZuBsPaCe <kurt.rudin@gmx.net> | 2015-11-19 15:19:18 +0100 |
commit | 9f9452d023444bbc27d88dbbdf55f93c6678c9a4 (patch) | |
tree | e4ce8cc5ab2d8cc3fee796ff2847b7ebd40be0f8 /platform | |
parent | e23734363e7d4f7cb790990acf357d2c36a64734 (diff) |
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
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 12 | ||||
-rw-r--r-- | platform/winrt/os_winrt.cpp | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 2a51c8f16f..fa9cba9d2d 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -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; } diff --git a/platform/winrt/os_winrt.cpp b/platform/winrt/os_winrt.cpp index 0acc979d8b..adaf722786 100644 --- a/platform/winrt/os_winrt.cpp +++ b/platform/winrt/os_winrt.cpp @@ -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; } } |