aboutsummaryrefslogtreecommitdiff
path: root/src/pane/terminal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pane/terminal.rs')
-rw-r--r--src/pane/terminal.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs
index a804a7fb..1dc5a88d 100644
--- a/src/pane/terminal.rs
+++ b/src/pane/terminal.rs
@@ -538,6 +538,10 @@ impl PaneTerminal {
self.ghostty.visible_hyperlinks(area)
}
+ pub(crate) fn kitty_graphics_may_have_placements(&self) -> bool {
+ self.ghostty.kitty_graphics_may_have_placements()
+ }
+
pub fn kitty_image_placements_with_data_filter<F>(
&self,
needs_data: F,
@@ -2190,6 +2194,14 @@ impl GhosttyPaneTerminal {
.unwrap_or_default()
}
+ pub(crate) fn kitty_graphics_may_have_placements(&self) -> bool {
+ self.core
+ .lock()
+ .ok()
+ .and_then(|core| core.terminal.kitty_graphics_may_have_placements().ok())
+ .unwrap_or(true)
+ }
+
pub fn kitty_image_placements_with_data_filter<F>(
&self,
needs_data: F,