diff --git a/doc/foot-ctlseqs.7.scd b/doc/foot-ctlseqs.7.scd index d26bb39d..0d702897 100644 --- a/doc/foot-ctlseqs.7.scd +++ b/doc/foot-ctlseqs.7.scd @@ -159,6 +159,8 @@ m*. : Conceal; text is not visible, but is copiable | 9 : Crossed-out/strike +| 21 +: Double underline (requires ext-underline feature) | 22 : Disable *bold* and *dim* | 23 @@ -185,6 +187,10 @@ m*. : See "indexed and RGB colors" below | 49 : Use the default background color (*background* in *foot.ini*(5)) +| 58 +: See "indexed and RGB colors" below +| 59 +: Set underline color to foreground (requires ext-underline feature) | 90-97 : Select foreground color (using *brightN* in *foot.ini*(5)) | 100-107 @@ -594,6 +600,35 @@ manipulation sequences. The generic format is: : : kitty : Update current Kitty keyboard flags, according to _mode_. +| \\E[ 4 : 0 m +: +: kitty +: Disable underline (requires ext-underline feature). +| \\E[ 4 : 1 m +: +: kitty +: Set the underline style to a straight + (requires ext-underline feature). +| \\E[ 4 : 2 m +: +: kitty +: Set the underline style to a double + (requires ext-underline feature). +| \\E[ 4 : 3 m +: +: kitty +: Set the underline style to a curly + (requires ext-underline feature). +| \\E[ 4 : 4 m +: +: kitty +: Set the underline style to a dotted + (requires ext-underline feature). +| \\E[ 4 : 5 m +: +: kitty +: Set the underline style to a dashed + (requires ext-underline feature). # OSC diff --git a/render.c b/render.c index 38845ae3..bb11aa95 100644 --- a/render.c +++ b/render.c @@ -452,7 +452,6 @@ draw_ext_underline(const struct terminal *term, pixman_image_t *pix, const double th_2 = thickness * thickness; const double hx_2 = ceil_w * ceil_w / 4.0; const int th = round(sqrt(th_2 + (th_2 * bt_2 / hx_2)) / 2.); - #define I(x) pixman_int_to_fixed(x) const pixman_trapezoid_t traps[] = { {