mirror of
https://github.com/taigrr/wtf
synced 2026-04-01 05:28:48 -07:00
Update dependencies
This commit is contained in:
1
vendor/github.com/gdamore/tcell/README.md
generated
vendored
1
vendor/github.com/gdamore/tcell/README.md
generated
vendored
@@ -25,6 +25,7 @@ ways. It also adds substantial functionality beyond termbox.
|
||||
* [tui-go](https://github.com/marcusolsson/tui-go) - UI library for terminal apps
|
||||
* [gomandelbrot](https://github.com/rgm3/gomandelbrot) - Mandelbrot!
|
||||
* [WTF](https://github.com/senorprogrammer/wtf)- Personal information dashboard for your terminal
|
||||
* [browsh](https://github.com/browsh-org/browsh) - A fully-modern text-based browser, rendering to TTY and browsers ([video](https://www.youtube.com/watch?v=HZq86XfBoRo))
|
||||
|
||||
## Pure Go Terminfo Database
|
||||
|
||||
|
||||
7
vendor/github.com/gdamore/tcell/cell.go
generated
vendored
7
vendor/github.com/gdamore/tcell/cell.go
generated
vendored
@@ -52,6 +52,10 @@ func (cb *CellBuffer) SetContent(x int, y int,
|
||||
i := 0
|
||||
for i < len(c.currComb) {
|
||||
r := c.currComb[i]
|
||||
if r == '\u200d' {
|
||||
i += 2
|
||||
continue
|
||||
}
|
||||
if runewidth.RuneWidth(r) != 0 {
|
||||
// not a combining character, yank it
|
||||
c.currComb = append(c.currComb[:i-1], c.currComb[i+1:]...)
|
||||
@@ -175,12 +179,13 @@ func (cb *CellBuffer) Resize(w, h int) {
|
||||
|
||||
// Fill fills the entire cell buffer array with the specified character
|
||||
// and style. Normally choose ' ' to clear the screen. This API doesn't
|
||||
// support combining characters.
|
||||
// support combining characters, or characters with a width larger than one.
|
||||
func (cb *CellBuffer) Fill(r rune, style Style) {
|
||||
for i := range cb.cells {
|
||||
c := &cb.cells[i]
|
||||
c.currMain = r
|
||||
c.currComb = nil
|
||||
c.currStyle = style
|
||||
c.width = 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user