diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 18:15:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-01 18:17:11 +0300 |
| commit | 53e4b27165caeeaaf206907d082d3614876b2e4c (patch) | |
| tree | 216dcb9c68640b8de04814b389956d923f45d201 /src/ghostty | |
| parent | 748c3fbb9a3d56d325b5cb802eb0707f30f2b354 (diff) | |
fix: answer osc 4 palette queries
refs #387
Diffstat (limited to 'src/ghostty')
| -rw-r--r-- | src/ghostty/mod.rs | 2 |
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), }) } |
