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:
parent
b14d032432
commit
576252294d
11 changed files with 324 additions and 355 deletions
|
|
@ -65,6 +65,7 @@ ref_tests! {
|
|||
wrapline_alt_toggle
|
||||
saved_cursor
|
||||
saved_cursor_alt
|
||||
sgr
|
||||
}
|
||||
|
||||
fn read_u8<P>(path: P) -> Vec<u8>
|
||||
|
|
|
|||
26
alacritty_terminal/tests/ref/sgr/alacritty.recording
Normal file
26
alacritty_terminal/tests/ref/sgr/alacritty.recording
Normal 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[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;38:2:0:255:0:255;4mTEST\e[0m"
|
||||
[9;38:2:0:255:0:255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;38:5:1;4mTEST\e[0m"
|
||||
[9;38:5:1;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48:2:255:0:255;4mTEST\e[0m"
|
||||
[9;48:2:255:0:255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48:2:0:255:0:255;4mTEST\e[0m"
|
||||
[9;48:2:0:255:0:255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48:5:1;4mTEST\e[0m"
|
||||
[9;48:5:1;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;38;2;255;0;255;4mTEST\e[0m"
|
||||
[9;38;2;255;0;255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;38;2;0;255;0;255;4mTEST\e[0m"
|
||||
[9;38;2;0;255;0;255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;38;5;1;4mTEST\e[0m"
|
||||
[9;38;5;1;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48;2;255;0;255;4mTEST\e[0m"
|
||||
[9;48;2;255;0;255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48;2;0;255;0;255;4mTEST\e[0m"
|
||||
[9;48;2;0;255;0;255;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ echo -e "\e[9;48;5;1;4mTEST\e[0m"
|
||||
[9;48;5;1;4mTEST[0m
|
||||
[undeadleech@archhq sgr]$ exit
|
||||
exit
|
||||
1
alacritty_terminal/tests/ref/sgr/config.json
Normal file
1
alacritty_terminal/tests/ref/sgr/config.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
||||
1
alacritty_terminal/tests/ref/sgr/grid.json
Normal file
1
alacritty_terminal/tests/ref/sgr/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
alacritty_terminal/tests/ref/sgr/size.json
Normal file
1
alacritty_terminal/tests/ref/sgr/size.json
Normal 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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue