Skip to content

Commit

Permalink
ChafaTermDb: Enable Kitty graphics on Ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed Sep 8, 2024
1 parent 919afd9 commit 6948309
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chafa/chafa-term-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,11 @@ detect_capabilities (ChafaTermInfo *ti, gchar **envp)
|| !strcmp (term, "st-256color"))
color_seq_list = color_direct_list;

/* Kitty has a unique graphics protocol */
/* Kitty has a unique graphics protocol. It is also supported by Ghostty. */
if (!strcmp (term, "xterm-kitty")
|| strlen (kitty_pid) > 0)
|| strlen (kitty_pid) > 0
|| !strcmp (term, "xterm-ghostty")
|| !strcmp (term_program, "ghostty"))
gfx_seqs = kitty_seqs;

/* iTerm2 supports truecolor and has a unique graphics protocol */
Expand Down

0 comments on commit 6948309

Please sign in to comment.