From cc104ed9c9e322e405ed017eae63fc29fcc03da8 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 10 Dec 2024 18:57:36 -0500 Subject: [PATCH] docs(cellbuf): add TODO for isXtermLike function --- cellbuf/window.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cellbuf/window.go b/cellbuf/window.go index 9fdb832..6db8aac 100644 --- a/cellbuf/window.go +++ b/cellbuf/window.go @@ -359,6 +359,10 @@ func (s *Screen) FillRect(cell *Cell, r Rectangle) bool { // isXtermLike returns whether the terminal is xterm-like. This means that the // terminal supports ECMA-48 and ANSI X3.64 escape sequences. +// TODO: Should this be a lookup table into each $TERM terminfo database? Like +// we could keep a map of ANSI escape sequence to terminfo capability name and +// check if the database supports the escape sequence. Instead of keeping a +// list of terminal names here. func isXtermLike(termtype string) (v bool) { parts := strings.Split(termtype, "-") if len(parts) == 0 {