mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
Fix Ghostty detection inside tmux for inline images (#299)
This commit is contained in:
committed by
GitHub
Unverified
parent
1e1a92ea47
commit
e904b11e7b
@@ -44,7 +44,7 @@ export function detectCapabilities(): TerminalCapabilities {
|
||||
return { images: "kitty", trueColor: true, hyperlinks: true };
|
||||
}
|
||||
|
||||
if (termProgram === "ghostty" || term.includes("ghostty")) {
|
||||
if (termProgram === "ghostty" || term.includes("ghostty") || process.env.GHOSTTY_RESOURCES_DIR) {
|
||||
return { images: "kitty", trueColor: true, hyperlinks: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user