File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"strconv"
12
12
"strings"
13
13
"sync"
14
- " syscall"
14
+ syscall "golang.org/x/sys/windows "
15
15
"unsafe"
16
16
17
17
"github.com/mattn/go-isatty"
@@ -73,7 +73,7 @@ type consoleCursorInfo struct {
73
73
}
74
74
75
75
var (
76
- kernel32 = syscall .NewLazyDLL ("kernel32.dll" )
76
+ kernel32 = syscall .NewLazySystemDLL ("kernel32.dll" )
77
77
procGetConsoleScreenBufferInfo = kernel32 .NewProc ("GetConsoleScreenBufferInfo" )
78
78
procSetConsoleTextAttribute = kernel32 .NewProc ("SetConsoleTextAttribute" )
79
79
procSetConsoleCursorPosition = kernel32 .NewProc ("SetConsoleCursorPosition" )
Original file line number Diff line number Diff line change 1
1
module github.com/mattn/go-colorable
2
2
3
- require github.com/mattn/go-isatty v0.0.16
3
+ require (
4
+ github.com/mattn/go-isatty v0.0.16
5
+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
6
+ )
4
7
5
8
go 1.15
You can’t perform that action at this time.
0 commit comments