mirror of https://github.com/Hilbis/Hilbish
fix: broken ansi escape codes on windows cmd
parent
9d385efbfc
commit
e3c25586e4
|
@ -0,0 +1,11 @@
|
||||||
|
// +build windows
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "golang.org/x/sys/windows"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
var mode uint32
|
||||||
|
windows.GetConsoleMode(windows.Stdout, &mode)
|
||||||
|
windows.SetConsoleMode(windows.Stdout, mode | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||||
|
}
|
Loading…
Reference in New Issue