Skip to content

Commit

Permalink
Document why CSI sequence is not used for identifying Kitty support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Sep 11, 2024
1 parent e8fc76b commit 281bb6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gfx/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const CHUNK_SIZE: usize = 4096;

/// Check if the terminal supports Kitty's terminal graphics protocol.
///
/// There are ways to detect this support using CSI sequences, but they
/// are not reliable. Additionally this approach is faster as there is
/// no need to wait or poll for the terminal's response.
/// There are ways to detect this support using CSI sequences, but since
/// only a few terminals support it, checking for those terminals is
/// easier, and faster as there is no need to wait or poll for the
/// terminal's response.
///
/// We detect if the user is using Kitty or WezTerm, which currently
/// are the only two terminals which support Kitty's terminal graphic
Expand Down

0 comments on commit 281bb6d

Please sign in to comment.