mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 03:33:22 +00:00
fix: enable vt input for windows
This commit is contained in:
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…
x
Reference in New Issue
Block a user