chore!: change to use v3 of Tcell (#2286)

* Remove SGR 8

* Remove `<backspace2>`

* Migrate to v3 of Tcell

* Refactor key handling functionality

* Bump Tcell version

* Replace `SetContent` API with `Put` API

* bump dependencies

* Use new color package

* Fix cursor position for grapheme clusters

* Some editing fixes to support grapheme clusters

* Ignore carriage return when printing

* Move grapheme cluster handling into misc.go

* Fix length of filenames containing emoji

* Use slices.Concat

* Use `string` instead of `[]rune` for `win.print`

* Add note about modifier limitations

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2026-03-04 17:02:26 +11:00
1 parent a446855e76
commit 6ec60cf9d8
21 files changed
+558 -463

No files matched your search

+2 -3
View File
@@ -8,7 +8,7 @@ import (
"strings"
"unicode/utf8"
"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v3"
)
// gEscapeCode is the byte that starts ANSI control sequences.
@@ -172,8 +172,7 @@ loop:
st = st.Reverse(true)
case "8":
// TODO: tcell PR for proper conceal
_, bg, _ := st.Decompose()
st = st.Foreground(bg)
st = st.Foreground(st.GetBackground())
case "9":
st = st.StrikeThrough(true)
case "22":