summaryrefslogtreecommitdiff
path: root/tui/draw.go
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-02-20 13:42:12 -0600
committerraven <citrons@mondecitronne.com>2026-02-20 13:46:59 -0600
commit5b6196ebe67cf954bae8212c1a33b869da723e11 (patch)
treedce33c06621847c3862e64bda914b1e8a450317d /tui/draw.go
parent05c068749740f9430d1fda7698c433697eef1652 (diff)
support builtin terminfo
copy termfo into the repository and modify it to embed an xterm terminfo to as a fallback
Diffstat (limited to 'tui/draw.go')
-rw-r--r--tui/draw.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tui/draw.go b/tui/draw.go
index 1f89b13..f70c98e 100644
--- a/tui/draw.go
+++ b/tui/draw.go
@@ -3,8 +3,8 @@ package tui
import (
"github.com/rivo/uniseg"
"golang.org/x/term"
- "zgo.at/termfo"
- "zgo.at/termfo/caps"
+ "citrons.xyz/talk/tui/termfo"
+ "citrons.xyz/talk/tui/termfo/caps"
"unicode"
"unicode/utf8"
"bufio"
@@ -94,7 +94,7 @@ func Start() error {
}
terminfo, err = termfo.New("")
if err != nil {
- if terminfo, err = termfo.New("xterm"); err != nil {
+ if terminfo, err = termfo.New("xterm-256color"); err != nil {
return err
}
}