Merge pull request #2477 from thaJeztah/update_terminal_sequences

vendor konsorten/go-windows-terminal-sequences v1.0.3
This commit is contained in:
Silvin Lubecki
2020-05-04 16:28:12 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1
View File
@@ -27,6 +27,7 @@ We thank all the authors who provided code to this library:
* Felix Kollmann
* Nicolas Perraut
* @dirty49374
## License
+1 -2
View File
@@ -4,7 +4,6 @@ package sequences
import (
"syscall"
"unsafe"
)
var (
@@ -27,7 +26,7 @@ func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error {
mode &^= ENABLE_VIRTUAL_TERMINAL_PROCESSING
}
ret, _, err := setConsoleMode.Call(uintptr(unsafe.Pointer(stream)), uintptr(mode))
ret, _, err := setConsoleMode.Call(uintptr(stream), uintptr(mode))
if ret == 0 {
return err
}