Skip to content

Commit

Permalink
fix(terminal): use ITU T.418 format for emitted CSI 58 sequences (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranzystorekk committed Jun 21, 2024
1 parent 0a0e062 commit 475dd08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zellij-server/src/panes/terminal_character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down

0 comments on commit 475dd08

Please sign in to comment.