Skip to content
Snippets Groups Projects
Commit aa8c0b95 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix Borland C++ build error.

parent 65a69879
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -940,11 +940,11 @@ int ansi_writestr_cb(const unsigned char *str, size_t len)
int ansi_initio_cb(void)
{
#ifdef _WIN32
DWORD conmode = 0;
if(isatty(fileno(stdin))) {
if(!SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), ENABLE_VIRTUAL_TERMINAL_INPUT))
return(0);
DWORD conmode = 0;
GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), &conmode);
if(!SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), conmode | ENABLE_VIRTUAL_TERMINAL_PROCESSING))
return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment