Skip to content

Commit

Permalink
Ghostty supports the Kitty graphics protocol. (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsully authored Oct 13, 2024
1 parent 2a5cb3f commit da1f160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/printer/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ pub enum KittySupport {
// Check if Kitty protocol can be used
fn check_kitty_support() -> KittySupport {
if let Ok(term) = std::env::var("TERM") {
if term.contains("kitty") {
if term.contains("kitty") || term.contains("ghostty") {
if has_local_support().is_ok() {
return KittySupport::Local;
} else {
return KittySupport::Remote;
}

return KittySupport::Remote;
}
}
KittySupport::None
Expand Down

0 comments on commit da1f160

Please sign in to comment.