diff --git a/src/dlangui/platforms/console/dconsole.d b/src/dlangui/platforms/console/dconsole.d
index 6dab4ef5..bd7dacbb 100644
--- a/src/dlangui/platforms/console/dconsole.d
+++ b/src/dlangui/platforms/console/dconsole.d
@@ -298,6 +298,26 @@ class Console {
}
//printf( "GetConsoleScreenBufferInfo failed: %lu\n", GetLastError());
}
+ // update console modes
+ immutable DWORD ENABLE_QUICK_EDIT_MODE = 0x0040;
+ immutable DWORD ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004;
+ immutable DWORD ENABLE_LVB_GRID_WORLDWIDE = 0x0010;
+ DWORD mode = 0;
+ GetConsoleMode(_hstdin, &mode);
+ mode = mode & ~ENABLE_ECHO_INPUT;
+ mode = mode & ~ENABLE_LINE_INPUT;
+ mode = mode & ~ENABLE_QUICK_EDIT_MODE;
+ mode |= ENABLE_PROCESSED_INPUT;
+ mode |= ENABLE_MOUSE_INPUT;
+ mode |= ENABLE_WINDOW_INPUT;
+ SetConsoleMode(_hstdin, mode);
+ GetConsoleMode(_hstdout, &mode);
+ mode = mode & ~ENABLE_PROCESSED_OUTPUT;
+ mode = mode & ~ENABLE_WRAP_AT_EOL_OUTPUT;
+ mode = mode & ~ENABLE_VIRTUAL_TERMINAL_PROCESSING;
+ mode |= ENABLE_LVB_GRID_WORLDWIDE;
+ SetConsoleMode(_hstdout, mode);
+
_cursorX = csbi.dwCursorPosition.X;
_cursorY = csbi.dwCursorPosition.Y;
_width = csbi.srWindow.Right - csbi.srWindow.Left + 1; // csbi.dwSize.X;
diff --git a/views/res/console_theme_default.xml b/views/res/console_theme_default.xml
index d320b2ab..900d5bd2 100644
--- a/views/res/console_theme_default.xml
+++ b/views/res/console_theme_default.xml
@@ -3,7 +3,7 @@
fontSize="1"
fontFace="Arial"
fontFamily="SansSerif"
- textColor="#808080"
+ textColor="#C0C0C0"
>
@@ -34,13 +34,14 @@
backgroundImageId="{' ' bc 0x808080 stretch}"
align="Center"
textFlags="UnderlineHotKeys"
- textColor="#000000"
+ textColor="#FFFFFF"
margins="0,0,1,0"
+ padding="1,0,1,0"
>
-
-
-
-
+
+
+
+
-