Fix Ghostty detection inside tmux for inline images (#299)
This commit is contained in:
@@ -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