From 5b6196ebe67cf954bae8212c1a33b869da723e11 Mon Sep 17 00:00:00 2001 From: raven Date: Fri, 20 Feb 2026 13:42:12 -0600 Subject: support builtin terminfo copy termfo into the repository and modify it to embed an xterm terminfo to as a fallback --- tui/draw.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tui/draw.go') 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 } } -- cgit v1.2.3