1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-11-06 22:44:18 -05:00

Add support for colon separated SGR parameters

This implements the colon separated form of SGR 38 and 48.

Fixes #1485.
This commit is contained in:
Christian Duerr 2020-08-07 22:37:23 +00:00 committed by GitHub
parent b14d032432
commit 576252294d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 324 additions and 355 deletions

View file

@ -65,6 +65,7 @@ ref_tests! {
wrapline_alt_toggle
saved_cursor
saved_cursor_alt
sgr
}
fn read_u8<P>(path: P) -> Vec<u8>

View file

@ -0,0 +1,26 @@
[undeadleech@archhq sgr]$ echo -e "\e[9;38:2:255:0:255;4mTEST\e[0m"
[9;38:2:255:0:255;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;38:2:0:255:0:255;4mTEST\e[0m"
[9;38:2:0:255:0:255;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;38:5:1;4mTEST\e[0m"
[9;38:5:1;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48:2:255:0:255;4mTEST\e[0m"
[9;48:2:255:0:255;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48:2:0:255:0:255;4mTEST\e[0m"
[9;48:2:0:255:0:255;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48:5:1;4mTEST\e[0m"
[9;48:5:1;4mTEST
[undeadleech@archhq sgr]$ echo -e "\e[9;38;2;255;0;255;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ echo -e "\e[9;38;2;0;255;0;255;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ echo -e "\e[9;38;5;1;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48;2;255;0;255;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48;2;0;255;0;255;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ echo -e "\e[9;48;5;1;4mTEST\e[0m"
TEST
[undeadleech@archhq sgr]$ exit
exit

View file

@ -0,0 +1 @@
{"history_size":0}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"width":1259.0,"height":683.0,"cell_width":9.0,"cell_height":19.0,"padding_x":4.0,"padding_y":9.0,"dpr":1.1666666666666667}