From a676bb13fb7edbe9b6641467da3f62ac3077b348 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 29 Jun 2023 18:23:12 +0200 Subject: [PATCH] fix selective imports --- src/dscanner/analysis/run.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dscanner/analysis/run.d b/src/dscanner/analysis/run.d index dec4215..18f5a0c 100644 --- a/src/dscanner/analysis/run.d +++ b/src/dscanner/analysis/run.d @@ -159,7 +159,9 @@ private string formatContext(Message.Diagnostic diagnostic, scope const(char)[] version (Windows) void enableColoredOutput() { - import core.sys.windows.windows; + import core.sys.windows.windows : DWORD, ENABLE_VIRTUAL_TERMINAL_PROCESSING, + GetConsoleMode, GetStdHandle, HANDLE, INVALID_HANDLE_VALUE, + SetConsoleMode, STD_OUTPUT_HANDLE; // Set output mode to handle virtual terminal sequences HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);