We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3863c6a commit cc104edCopy full SHA for cc104ed
cellbuf/window.go
@@ -359,6 +359,10 @@ func (s *Screen) FillRect(cell *Cell, r Rectangle) bool {
359
360
// isXtermLike returns whether the terminal is xterm-like. This means that the
361
// terminal supports ECMA-48 and ANSI X3.64 escape sequences.
362
+// TODO: Should this be a lookup table into each $TERM terminfo database? Like
363
+// we could keep a map of ANSI escape sequence to terminfo capability name and
364
+// check if the database supports the escape sequence. Instead of keeping a
365
+// list of terminal names here.
366
func isXtermLike(termtype string) (v bool) {
367
parts := strings.Split(termtype, "-")
368
if len(parts) == 0 {
0 commit comments