Compare commits

..
Author SHA1 Message Date
dependabot[bot] 4ea01d0417 chore(deps): bump golang.org/x/term from 0.47.0 to 0.48.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.47.0 to 0.48.0.
- [Commits](https://github.com/golang/term/compare/v0.47.0...v0.48.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 02:12:41 +00:00
5 changed files with 4 additions and 18 deletions

No files matched your search

-4
View File
@@ -12,10 +12,6 @@ If your feature can be implemented as a configuration option, **please add it to
For bug fixes, you can simply send a pull request.
## Automated contributions
Pull requests generated entirely by AI tools or submitted as part of mass-submission campaigns are not accepted. Such pull requests may be closed without review and labeled as spam.
## Code conventions
In addition to `gofmt` and friends (e.g. [go vet](https://pkg.go.dev/cmd/vet), [staticcheck](https://staticcheck.dev/), [golangci-lint](https://golangci-lint.run/)), we have a few conventions:
+1 -1
View File
@@ -8,7 +8,7 @@ require (
github.com/fsnotify/fsnotify v1.10.1
github.com/gdamore/tcell/v3 v3.6.0
golang.org/x/sys v0.50.0
golang.org/x/term v0.47.0
golang.org/x/term v0.48.0
)
require (
+2 -2
View File
@@ -36,8 +36,8 @@ golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM=
golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY=
golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk=
golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+1 -7
View File
@@ -162,7 +162,7 @@ loop:
st = st.Underline(false)
case "4", "4:1":
st = st.Underline(true)
case "4:2", "21":
case "4:2":
st = st.Underline(tcell.UnderlineStyleDouble)
case "4:3":
st = st.Underline(tcell.UnderlineStyleCurly)
@@ -205,8 +205,6 @@ loop:
}
st = st.Foreground(color)
i += offset
case "39":
st = st.Foreground(tcell.ColorDefault)
case "40", "41", "42", "43", "44", "45", "46", "47":
n, _ := strconv.Atoi(toks[i])
st = st.Background(tcell.PaletteColor(n - 40))
@@ -221,8 +219,6 @@ loop:
}
st = st.Background(color)
i += offset
case "49":
st = st.Background(tcell.ColorDefault)
case "58":
color, offset, err := parseColor(toks[i+1:])
if err != nil {
@@ -231,8 +227,6 @@ loop:
}
st = st.Underline(color)
i += offset
case "59":
st = st.Underline(tcell.ColorDefault)
default:
log.Printf("unknown ANSI code: %s", toks[i])
}
-4
View File
@@ -230,7 +230,6 @@ func TestApplySGR(t *testing.T) {
{"4:0", none.Underline(true), none},
{"4:1", none, none.Underline(true)},
{"4:2", none, none.Underline(tcell.UnderlineStyleDouble)},
{"21", none, none.Underline(tcell.UnderlineStyleDouble)},
{"4:3", none, none.Underline(tcell.UnderlineStyleCurly)},
{"4:4", none, none.Underline(tcell.UnderlineStyleDotted)},
{"4:5", none, none.Underline(tcell.UnderlineStyleDashed)},
@@ -245,11 +244,9 @@ func TestApplySGR(t *testing.T) {
{"31", none, none.Foreground(color.Maroon)},
{"31", none.Foreground(color.Green), none.Foreground(color.Maroon)},
{"31", none.Foreground(color.Green).Bold(true), none.Foreground(color.Maroon).Bold(true)},
{"39", none.Foreground(color.Maroon).Bold(true), none.Bold(true)},
{"41", none, none.Background(color.Maroon)},
{"41", none.Background(color.Green), none.Background(color.Maroon)},
{"49", none.Background(color.Maroon).Bold(true), none.Bold(true)},
{"1;31", none, none.Foreground(color.Maroon).Bold(true)},
{"1;31", none.Foreground(color.Green), none.Foreground(color.Maroon).Bold(true)},
@@ -279,7 +276,6 @@ func TestApplySGR(t *testing.T) {
{"38;2;5;102;8", none, none.Foreground(tcell.NewRGBColor(5, 102, 8))},
{"48;2;0;48;143", none, none.Background(tcell.NewRGBColor(0, 48, 143))},
{"59", none.Underline(true, color.Maroon), none.Underline(true)},
// Fixes color construction issue: https://github.com/gokcehan/lf/pull/439#issuecomment-674409446
{"38;5;34;1", none, none.Foreground(color.XTerm34).Bold(true)},