Skip to content

Commit cc104ed

Browse files
committed
docs(cellbuf): add TODO for isXtermLike function
1 parent 3863c6a commit cc104ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cellbuf/window.go

+4
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ func (s *Screen) FillRect(cell *Cell, r Rectangle) bool {
359359

360360
// isXtermLike returns whether the terminal is xterm-like. This means that the
361361
// 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.
362366
func isXtermLike(termtype string) (v bool) {
363367
parts := strings.Split(termtype, "-")
364368
if len(parts) == 0 {

0 commit comments

Comments
 (0)