From b904207b1979bb86f86c2a7db1720ce04571508a Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 12 Aug 2020 16:05:22 +0000 Subject: Add support for double underlines This adds support for double underlines using the colon separated escape sequence `CSI 4 : 2 m`. Alacritty will now also always fallback to the normal underline in case any of the other underlines like the undercurl are specified. The escape sequence `CSI 4 : 0 m` can now be used to clear all underlines. Some terminals support `CSI 21 m` for double underline, but since Alacritty already uses that as cancel bold which is a little more consistent, that behavior has not changed. So the colon separated variant must be used. --- alacritty_terminal/tests/ref.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'alacritty_terminal/tests/ref.rs') diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 89e7b4aa..54031022 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -66,6 +66,7 @@ ref_tests! { saved_cursor saved_cursor_alt sgr + underline } fn read_u8

(path: P) -> Vec -- cgit v1.2.3-54-g00ecf