diff --git a/go.mod b/go.mod index 9f65df5e70..410b743343 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ replace cloud.google.com/go => cloud.google.com/go v0.110.0 require ( github.com/99designs/gqlgen v0.17.19 github.com/ActiveState/go-ogle-analytics v0.0.0-20170510030904-9b3f14901527 - github.com/ActiveState/termtest v0.7.3-0.20230908221236-4a478533c7a9 + github.com/ActiveState/termtest v0.7.3-0.20230908224824-6831d5fa1ad6 github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 github.com/andygrunwald/go-jira v1.15.1 diff --git a/go.sum b/go.sum index ff9a86fcb5..9f3716be47 100644 --- a/go.sum +++ b/go.sum @@ -345,8 +345,8 @@ github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48 h1:UCx/ObpVRgC github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48/go.mod h1:NhUbNQ8UpfnC6nZvZ8oThqYSCE/G8FQp9JUrK9jXJs0= github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 h1:RdhhSiwmgyUaaF2GBNrbqTwE5SM+MaVjwf91Ua+CK8c= github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14/go.mod h1:5mM6vNRQwshCjlkOnVpwC//4ZpkiC6nmZr8lPOxJdXs= -github.com/ActiveState/termtest v0.7.3-0.20230908221236-4a478533c7a9 h1:5Duq9BzYcauTtXpbzAD852pgVOJ0ISqvGi2FIcgKZVQ= -github.com/ActiveState/termtest v0.7.3-0.20230908221236-4a478533c7a9/go.mod h1:RyWp2NaaTrVAa+XjMHpKAqwBFWbL6wE12HQxiZNGAqU= +github.com/ActiveState/termtest v0.7.3-0.20230908224824-6831d5fa1ad6 h1:93P+iuIRQawH6zHs14LeRsArBh8OiaxXWGoAp5xsxbk= +github.com/ActiveState/termtest v0.7.3-0.20230908224824-6831d5fa1ad6/go.mod h1:RyWp2NaaTrVAa+XjMHpKAqwBFWbL6wE12HQxiZNGAqU= github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= diff --git a/vendor/github.com/ActiveState/termtest/helpers_unix.go b/vendor/github.com/ActiveState/termtest/helpers_unix.go index 42db1bbe41..5034992680 100644 --- a/vendor/github.com/ActiveState/termtest/helpers_unix.go +++ b/vendor/github.com/ActiveState/termtest/helpers_unix.go @@ -4,12 +4,11 @@ package termtest import ( - "bytes" "errors" ) var ERR_ACCESS_DENIED = errors.New("only used on windows, this should never match") -func cleanPtySnapshot(b []byte, _ bool) []byte { - return bytes.TrimRight(b, "\x00") +func cleanPtySnapshot(b []byte, cursorPos int, _ bool) ([]byte, int) { + return b, cursorPos } diff --git a/vendor/modules.txt b/vendor/modules.txt index 1493d2d83f..d358fb6f74 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -19,7 +19,7 @@ github.com/ActiveState/graphql # github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 ## explicit; go 1.13 github.com/ActiveState/pty -# github.com/ActiveState/termtest v0.7.3-0.20230908221236-4a478533c7a9 +# github.com/ActiveState/termtest v0.7.3-0.20230908224824-6831d5fa1ad6 ## explicit; go 1.18 github.com/ActiveState/termtest # github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78