MCPcopy Create free account
hub / github.com/auth0/auth0-cli / InitConsole

Function InitConsole

internal/ansi/init_windows.go:10–13  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

8// on Windows systems. This is necessary to enable colored and ANSI output.
9// This is the Windows implementation of ansi/init.go.
10func InitConsole() {
11 setWindowsConsoleMode(windows.Stdout, windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
12 setWindowsConsoleMode(windows.Stderr, windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
13}
14
15func setWindowsConsoleMode(handle windows.Handle, flags uint32) {
16 var mode uint32

Callers

nothing calls this directly

Calls 1

setWindowsConsoleModeFunction · 0.85

Tested by

no test coverage detected