serilog / serilog-sinks-console

Write log events to System.Console as text or JSON, with ANSI theme support
Apache License 2.0
248 stars 72 forks source link

How to make a colored tex into the console called by AllocConsole method? #151

Open Hiprox opened 9 months ago

Hiprox commented 9 months ago

I want to make "developer console" called in WinForm application by pressing hotkeys. The console is opened by calling AllocConsole, but the problem is that the text is displayed only in white color. Is there any way to solve this problem? I assume that I need to write something else in the code.