mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-31 18:53: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() {
|
||||
var mode uint32
|
||||
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