InitConsole configures the standard output and error streams on Windows systems. This is necessary to enable colored and ANSI output. This is the Windows implementation of ansi/init.go.
()
| 8 | // on Windows systems. This is necessary to enable colored and ANSI output. |
| 9 | // This is the Windows implementation of ansi/init.go. |
| 10 | func InitConsole() { |
| 11 | setWindowsConsoleMode(windows.Stdout, windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING) |
| 12 | setWindowsConsoleMode(windows.Stderr, windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING) |
| 13 | } |
| 14 | |
| 15 | func setWindowsConsoleMode(handle windows.Handle, flags uint32) { |
| 16 | var mode uint32 |
nothing calls this directly
no test coverage detected