Add strikethrough TextStyling

Closes #12369
This commit is contained in:
Timen Zandbergen
2026-01-22 19:19:47 +01:00
committed by Johannes Altmanninger
parent 553aa40b34
commit f6936f222a
10 changed files with 61 additions and 5 deletions

View File

@@ -54,6 +54,9 @@ The following options are available:
**-r** or **--reverse**
Sets reverse mode.
**-s** or **--strikethrough**
Sets strikethrough mode.
**-u** or **--underline**, or **-uSTYLE** or **--underline=STYLE**
Set the underline mode; supported styles are **single** (default), **double**, **curly**, **dotted** and **dashed**.

View File

@@ -110,6 +110,7 @@ Options accepted by ``set_color`` like
``--dim``,
``--italics``,
``--reverse``,
``--strikethrough``,
``--underline`` and
``--underline-color=``
are also accepted.

View File

@@ -92,7 +92,7 @@ Optional Commands
* - ``\e[m``
- sgr0
- Turn off bold/dim/italic/underline/reverse attribute modes and select default colors.
- Turn off bold/dim/italic/underline/strikethrough/reverse attribute modes and select default colors.
* - ``\e[1m``
- bold
- Enter bold mode.
@@ -120,12 +120,18 @@ Optional Commands
* - ``\e[7m``
- rev
- Enter reverse video mode (swap foreground and background colors).
* - ``\e[9m``
- smxx
- Enter strikethrough mode
* - ``\e[23m``
- ritm
- Exit italic mode.
* - ``\e[24m``
- rmul
- Exit underline mode.
* - ``\e[29m``
- rmxx
- Exit strikethrough mode.
* - ``\e[38;5; Ps m``
- setaf
- Select foreground color Ps from the 256-color-palette.