From 60247087ec3753d58a6a80843b07816b9f32594b Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Fri, 21 Jun 2024 14:28:43 +0200 Subject: [PATCH] zellij: add fix for underline colors --- .../zellij/patches/fix-underline-colors.patch | 27 +++++++++++++++++++ srcpkgs/zellij/template | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/zellij/patches/fix-underline-colors.patch diff --git a/srcpkgs/zellij/patches/fix-underline-colors.patch b/srcpkgs/zellij/patches/fix-underline-colors.patch new file mode 100644 index 00000000000000..31b5d8f31fe474 --- /dev/null +++ b/srcpkgs/zellij/patches/fix-underline-colors.patch @@ -0,0 +1,27 @@ +From 475dd0862312c9f7a6b0e913400e3372aa09c591 Mon Sep 17 00:00:00 2001 +From: tranzystorekk +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")?; diff --git a/srcpkgs/zellij/template b/srcpkgs/zellij/template index 31656a8171a38e..826e65720f285a 100644 --- a/srcpkgs/zellij/template +++ b/srcpkgs/zellij/template @@ -1,7 +1,7 @@ # Template file for 'zellij' pkgname=zellij version=0.40.1 -revision=1 +revision=2 # Wasmer runtime only supports the following archs: x86_64, arm64 # https://docs.wasmer.io/runtime/features#backend-support-by-chipset # https://github.com/wasmerio/wasmer/issues/4244#issuecomment-1751365804