set_color: allow resetting specific attributes

Add an optional `on`/`off`` value to italics/reverse/striketrough
to allow turning of the attribute without having to use the `normal`
color, i.e. reset the whole style

Part 1/3 of #12495

Part of #12507
This commit is contained in:
Nahor
2026-03-01 13:10:37 -08:00
committed by Johannes Altmanninger
parent cba82a3c64
commit a893dd10f4
16 changed files with 347 additions and 83 deletions

View File

@@ -48,14 +48,14 @@ The following options are available:
**-d** or **--dim**
Sets dim mode.
**-i** or **--italics**
Sets italics mode.
**-i** or **--italics**, or **-iSTATE** or **--italics=STATE**
Sets italics mode. The state can be **on** / **true** (default), or **off** / **false**
**-r** or **--reverse**
Sets reverse mode.
**-r** or **--reverse**, or **-iSTATE** or **--reverse=STATE**
Sets reverse mode. The state can be **on** / **true** (default), or **off** / **false**
**-s** or **--strikethrough**
Sets strikethrough mode.
**-s** or **--strikethrough**, or **-sSTATE** or **--strikethrough=STATE**
Sets strikethrough mode. The state can be **on** / **true** (default), or **off** / **false**
**-u** or **--underline**, or **-uSTYLE** or **--underline=STYLE**
Set the underline mode; supported styles are **single** (default), **double**, **curly**, **dotted** and **dashed**.