28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
From 475dd0862312c9f7a6b0e913400e3372aa09c591 Mon Sep 17 00:00:00 2001
|
|
From: tranzystorekk <tranzystorek.io@protonmail.com>
|
|
Date: Fri, 21 Jun 2024 13:46:17 +0200
|
|
Subject: [PATCH] fix(terminal): use ITU T.418 format for emitted CSI 58
|
|
sequences (#3440)
|
|
|
|
---
|
|
zellij-server/src/panes/terminal_character.rs | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/zellij-server/src/panes/terminal_character.rs b/zellij-server/src/panes/terminal_character.rs
|
|
index c3e6b19df9..3bdc6559fd 100644
|
|
--- a/zellij-server/src/panes/terminal_character.rs
|
|
+++ b/zellij-server/src/panes/terminal_character.rs
|
|
@@ -619,10 +619,10 @@ impl Display for CharacterStyles {
|
|
if let Some(ansi_code) = self.underline_color {
|
|
match ansi_code {
|
|
AnsiCode::RgbCode((r, g, b)) => {
|
|
- write!(f, "\u{1b}[58;2;{};{};{}m", r, g, b)?;
|
|
+ write!(f, "\u{1b}[58:2::{}:{}:{}m", r, g, b)?;
|
|
},
|
|
AnsiCode::ColorIndex(color_index) => {
|
|
- write!(f, "\u{1b}[58;5;{}m", color_index)?;
|
|
+ write!(f, "\u{1b}[58:5:{}m", color_index)?;
|
|
},
|
|
AnsiCode::Reset => {
|
|
write!(f, "\u{1b}[59m")?;
|