Skip to content

Commit

Permalink
chore: 更新依赖项
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Mar 5, 2024
1 parent 2e19c9b commit 3565b06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions colors/colors_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ import "golang.org/x/sys/windows"
//
// enable 表示设置之前值,之后可调用 RestoreVirtualTerminalProcessing 恢复:
//
// isEnable, err := EnableVirtualTerminalProcessing(windows.Stdout)
// RestoreVirtualTerminalProcessing(isEnable) // 恢复
//
// NOTE: 如果在测试用例中使用了该代码,且使用 go test ./... 进行测试,
// 则会返回 the handle invalid 的错误信息,但不影响实际使用!
// 可以使用多条 go test 代替 go test ./...
// 或是采用忽略返回的错误信息的方式进行处理。
// enable, err := EnableVirtualTerminalProcessing(windows.Stdout)
// RestoreVirtualTerminalProcessing(enable) // 恢复
//
// windows 下,windows terminal 默认支持 ansi,不需要调用该函数,
// 而 cmd 和 powershell 终端则需要调用该函数启用特性才支持。
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require (
github.com/issue9/assert/v4 v4.1.1
github.com/issue9/errwrap v0.3.2
github.com/issue9/sliceutil v0.15.1
golang.org/x/sys v0.17.0
golang.org/x/sys v0.18.0
)

go 1.18
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ github.com/issue9/errwrap v0.3.2 h1:7KEme9Pfe75M+sIMcPCn/DV90wjnOcRbO4DXVAHj3Fw=
github.com/issue9/errwrap v0.3.2/go.mod h1:KcCLuUGiffjooLCUjL89r1cyO8/HT/VRcQrneO53N3A=
github.com/issue9/sliceutil v0.15.1 h1:mV1VlQSO5E8sh2ab6pypLg7TdgGZlDb30E8quli01xY=
github.com/issue9/sliceutil v0.15.1/go.mod h1:ldun6sT4/bOJxuMtOXhtc6P7GCwE7L+avV86HNks7qk=
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=

0 comments on commit 3565b06

Please sign in to comment.