fix(terminal): use ITU T.418 format for emitted CSI 58 sequences (#3440)
This commit is contained in:
parent
0a0e062e6b
commit
475dd08623
1 changed files with 2 additions and 2 deletions
|
|
@ -619,10 +619,10 @@ impl Display for CharacterStyles {
|
||||||
if let Some(ansi_code) = self.underline_color {
|
if let Some(ansi_code) = self.underline_color {
|
||||||
match ansi_code {
|
match ansi_code {
|
||||||
AnsiCode::RgbCode((r, g, b)) => {
|
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) => {
|
AnsiCode::ColorIndex(color_index) => {
|
||||||
write!(f, "\u{1b}[58;5;{}m", color_index)?;
|
write!(f, "\u{1b}[58:5:{}m", color_index)?;
|
||||||
},
|
},
|
||||||
AnsiCode::Reset => {
|
AnsiCode::Reset => {
|
||||||
write!(f, "\u{1b}[59m")?;
|
write!(f, "\u{1b}[59m")?;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue