support colons in SGR character attributes

Patch by Mikhail Kot <to@myrrc.dev>
With some modifications to behave more like xterm (see note below).

Example:

	printf '\033[48;2;255:0:0mtest\n'

https://invisible-island.net/xterm/ctlseqs/ctlseqs.html

Some notes:

"CSI Pm m  Character Attributes (SGR).
[...]
o   xterm allows either colons (standard) or semicolons
(legacy) to separate the subparameters (but after the
first colon, colons must be used).
This commit is contained in:
Bakkeby 2024-05-02 09:28:20 +02:00
parent 118e965d0c
commit aa5957495d
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# st version
VERSION = 0.9.1
VERSION = 0.9.2
# Customize below to fit your system