mirror of
https://github.com/alacritty/alacritty.git
synced 2025-11-06 22:44:18 -05:00
Add colored underline support
This commit adds support for colored underline and refines the dynamic extra storage. The extra storage now is using `Arc` making cloning it way faster compared to `Box` approach which scales really well when it comes to cloning in `Term::write_at_cursor`, since cloning `Arc` is constant time. Fixes #4142.
This commit is contained in:
parent
589c1e9c6b
commit
f4bdf5fb36
14 changed files with 94 additions and 38 deletions
|
|
@ -52,6 +52,7 @@ ref_tests! {
|
|||
zerowidth
|
||||
selective_erasure
|
||||
colored_reset
|
||||
colored_underline
|
||||
delete_lines
|
||||
delete_chars_reset
|
||||
alt_reset
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
[1m[7m%[27m[1m[0m
]133;A]2;kchibisov@Zodiac:~/src/rust/alacritty-workspace/fork
[0m[27m[24m[J[1;34mfork[0m on [1;35m [0m[1;35mcolored-underlines-v3[0m via [1;31m🦀 [0m[1;31mv1.59.0[0m[1;31m [0m[1;37m➜[0m [K[?2004h[1m[92mcargo[0m[39m run -- --ref-test --config-file [4m/dev/null[24m -o scrolling.history=0[70D[1m[92me[1m[92mc[1m[92mh[1m[92mo[0m[39m[0m[39m -e [92m'[92m\[92me[92m[[92m5[92m8[92m;[92m2[92m;[92m2[92m5[92m5[92m;[92m0[92m;[92m2[92m5[92m5[92mm[92m\[92me[92m[[92m4[92m:[92m1[92mm[92mU[92mN[92mD[92mE[24m[92mR[24m[92mL[24m[92mI[24m[92mN[24m[92mE[24m[92m\[24m[92me[24m[92m[[24m[92m4[92m:[92m2[92mm[92mD[92mO[92mU[92mB[92mL[92mE[92m\[92me[92m[[92m5[92m8[92m:[92m5[92m:[92m1[92m9[92m6[92mm[92m\[92me[92m[4:3mUh̷̗ERCURL\e[4:4mD[92mO[92mTTED\e[4:5mDASHED\e[59mNOT_COLORED_DASH\e[0m'[39m[K[?2004l
|
||||
]2;echo -e '\e[58;2;255;0;255m\e[4:1mUNDERLINE\e[4:2mDOUBLE\e[58:5:196m\e[4:3mUh̷̗ERCURL\e[4:4mDOTTED\e[4:5mDASHED\e[59mNOT_COLORED_DASH\e[0m'[58;2;255;0;255m[4:1mUNDERLINE[4:2mDOUBLE[58:5:196m[4:3mUh̷̗ERCURL[4:4mDOTTED[4:5mDASHED[59mNOT_COLORED_DASH[0m
|
||||
[1m[7m%[27m[1m[0m
]133;A]2;kchibisov@Zodiac:~/src/rust/alacritty-workspace/fork
[0m[27m[24m[J[1;34mfork[0m on [1;35m [0m[1;35mcolored-underlines-v3[0m via [1;31m🦀 [0m[1;31mv1.59.0[0m[1;31m [0m[1;37m➜[0m [K[?2004h[?2004l
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
||||
1
alacritty_terminal/tests/ref/colored_underline/grid.json
Normal file
1
alacritty_terminal/tests/ref/colored_underline/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
alacritty_terminal/tests/ref/colored_underline/size.json
Normal file
1
alacritty_terminal/tests/ref/colored_underline/size.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"width":1262.0,"height":690.0,"cell_width":9.0,"cell_height":18.0,"padding_x":0.0,"padding_y":0.0,"screen_lines":38,"columns":140}
|
||||
Loading…
Add table
Add a link
Reference in a new issue