aboutsummaryrefslogtreecommitdiff
path: root/src/ghostty
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-01 18:15:56 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-01 18:17:11 +0300
commit53e4b27165caeeaaf206907d082d3614876b2e4c (patch)
tree216dcb9c68640b8de04814b389956d923f45d201 /src/ghostty
parent748c3fbb9a3d56d325b5cb802eb0707f30f2b354 (diff)
fix: answer osc 4 palette queries
refs #387
Diffstat (limited to 'src/ghostty')
-rw-r--r--src/ghostty/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ghostty/mod.rs b/src/ghostty/mod.rs
index 9eda90d7..e2b592d2 100644
--- a/src/ghostty/mod.rs
+++ b/src/ghostty/mod.rs
@@ -372,6 +372,7 @@ fn cell_color_from_style_color(color: ffi::GhosttyStyleColor) -> Option<CellColo
pub struct RenderColors {
pub background: RgbColor,
pub foreground: RgbColor,
+ pub palette: [RgbColor; 256],
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -1870,6 +1871,7 @@ impl RenderState {
Ok(RenderColors {
background: colors.background.into(),
foreground: colors.foreground.into(),
+ palette: colors.palette.map(Into::into),
})
}