mirror of https://github.com/Hilbis/Hilbish
fix: enable vt input for windows
parent
be8bdef9c8
commit
dd9aa4b6ea
|
@ -7,5 +7,5 @@ import "golang.org/x/sys/windows"
|
||||||
func init() {
|
func init() {
|
||||||
var mode uint32
|
var mode uint32
|
||||||
windows.GetConsoleMode(windows.Stdout, &mode)
|
windows.GetConsoleMode(windows.Stdout, &mode)
|
||||||
windows.SetConsoleMode(windows.Stdout, mode | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
windows.SetConsoleMode(windows.Stdout, mode | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING | windows.ENABLE_VIRTUAL_TERMINAL_INPUT)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue