diff --git a/go.mod b/go.mod index f52a5391..fa336aee 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/obalunenko/getenv v1.14.0 github.com/obalunenko/logger v1.2.0 github.com/obalunenko/version v1.2.0 - github.com/savioxavier/termlink v1.4.1 + github.com/savioxavier/termlink v1.4.2 github.com/stretchr/testify v1.10.0 github.com/urfave/cli/v2 v2.27.5 ) diff --git a/go.sum b/go.sum index c8aa8c50..c5b566c5 100644 --- a/go.sum +++ b/go.sum @@ -29,8 +29,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/savioxavier/termlink v1.4.1 h1:pFcd+XH8iQjL+2mB4buCDUo+CMt5kKsr8jGG+VLfYAg= -github.com/savioxavier/termlink v1.4.1/go.mod h1:5T5ePUlWbxCHIwyF8/Ez1qufOoGM89RCg9NvG+3G3gc= +github.com/savioxavier/termlink v1.4.2 h1:PRlvcStluuSKA87KCIqzODknYeQ3XEcgJP6DvAAVl1c= +github.com/savioxavier/termlink v1.4.2/go.mod h1:5T5ePUlWbxCHIwyF8/Ez1qufOoGM89RCg9NvG+3G3gc= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w= diff --git a/vendor/github.com/savioxavier/termlink/termlink.go b/vendor/github.com/savioxavier/termlink/termlink.go index 16f521ac..22806ae2 100644 --- a/vendor/github.com/savioxavier/termlink/termlink.go +++ b/vendor/github.com/savioxavier/termlink/termlink.go @@ -118,6 +118,12 @@ func supportsHyperlinks() bool { return v.major >= 20200620 case "vscode": return v.major > 1 || (v.major == 1 && v.minor >= 72) + case "ghostty": + // It is unclear when during the private beta that ghostty started supporting hyperlinks, + // so we'll start from the public release. + return v.major >= 1 + default: + return false // Hyper Terminal used to be included in this list, and it even supports hyperlinks // but the hyperlinks are pseudo-hyperlinks and are actually not clickable @@ -125,7 +131,7 @@ func supportsHyperlinks() bool { } // Terminals which have a TERM variable set - if matchesEnv("TERM", []string{"xterm-kitty", "xterm-256color", "alacritty", "alacritty-direct"}) { + if matchesEnv("TERM", []string{"xterm-kitty", "alacritty", "alacritty-direct", "xterm-ghostty"}) { return true } diff --git a/vendor/modules.txt b/vendor/modules.txt index cefeb9ed..35697318 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -41,7 +41,7 @@ github.com/pmezard/go-difflib/difflib # github.com/russross/blackfriday/v2 v2.1.0 ## explicit github.com/russross/blackfriday/v2 -# github.com/savioxavier/termlink v1.4.1 +# github.com/savioxavier/termlink v1.4.2 ## explicit; go 1.17 github.com/savioxavier/termlink # github.com/stretchr/testify v1.10.0