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

Function setWindowsConsoleMode

internal/ansi/init_windows.go:15–21  ·  view source on GitHub ↗
(handle windows.Handle, flags uint32)

Source from the content-addressed store, hash-verified

13}
14
15func setWindowsConsoleMode(handle windows.Handle, flags uint32) {
16 var mode uint32
17 // set the console mode if not already there:
18 if err := windows.GetConsoleMode(handle, &mode); err == nil {
19 _ = windows.SetConsoleMode(handle, mode|flags)
20 }
21}

Callers 1

InitConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected