man: document underline SGR

This commit is contained in:
kraftwerk28 2022-07-30 12:03:25 +03:00
parent f1f46edc7d
commit f6526e54a7
2 changed files with 35 additions and 1 deletions

View file

@ -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:
: <unnamed>
: kitty
: Update current Kitty keyboard flags, according to _mode_.
| \\E[ 4 : 0 m
: <unnamed>
: kitty
: Disable underline (requires ext-underline feature).
| \\E[ 4 : 1 m
: <unnamed>
: kitty
: Set the underline style to a straight
(requires ext-underline feature).
| \\E[ 4 : 2 m
: <unnamed>
: kitty
: Set the underline style to a double
(requires ext-underline feature).
| \\E[ 4 : 3 m
: <unnamed>
: kitty
: Set the underline style to a curly
(requires ext-underline feature).
| \\E[ 4 : 4 m
: <unnamed>
: kitty
: Set the underline style to a dotted
(requires ext-underline feature).
| \\E[ 4 : 5 m
: <unnamed>
: kitty
: Set the underline style to a dashed
(requires ext-underline feature).
# OSC

View file

@ -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[] = {
{