Skip to content

Commit

Permalink
docs(cellbuf): add TODO for isXtermLike function
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 10, 2024
1 parent 3863c6a commit cc104ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cellbuf/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc104ed

Please sign in to comment.