From 2ded77656793f340440fe0efb54119697bb22a1a Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 15 Sep 2021 01:08:10 -0600 Subject: Added ability to set the special color for the undercur and underlines using the standard ANSI code 59 --- alacritty/src/renderer/mod.rs | 2 ++ alacritty/src/renderer/rects.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'alacritty/src/renderer') diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs index 11ccfc63..0173769c 100644 --- a/alacritty/src/renderer/mod.rs +++ b/alacritty/src/renderer/mod.rs @@ -835,6 +835,7 @@ impl<'a> RenderApi<'a> { bg: Rgb, string: &str, ) { + let sp = Rgb { b: 0, g: 0, r: 0 }; let cells = string .chars() .enumerate() @@ -846,6 +847,7 @@ impl<'a> RenderApi<'a> { bg_alpha: 1.0, fg, bg, + sp, }) .collect::>(); diff --git a/alacritty/src/renderer/rects.rs b/alacritty/src/renderer/rects.rs index 91a67c22..2640b645 100644 --- a/alacritty/src/renderer/rects.rs +++ b/alacritty/src/renderer/rects.rs @@ -260,7 +260,7 @@ impl RenderLines { } // Start new line if there currently is none. - let line = RenderLine { start: cell.point, end, color: cell.fg }; + let line = RenderLine { start: cell.point, end, color: cell.sp }; match self.inner.get_mut(&flag) { Some(lines) => lines.push(line), None => { -- cgit