Re: [hackers] [st][PATCH] sgr-patch

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed, 1 May 2024 20:52:13 +0200

On Mon, Apr 29, 2024 at 08:18:00PM +0100, Mikhail Kot wrote:
> Hi!
>
> Sorry, didn't see your message.
> SGR allows you to specify color delimiters in two way: colon
> or semicolon. The semicolon version is now legacy one, and many
> applications, e.g. aerc (its library vaxis-ui, to be precise)
> use colons by default. I believe it's better to support both
> versions
>
> --
> Mikhail :з
>
>

Hi Mikhail,

Thanks for the patch, I've applied it with some changes and notes.

Below is a test script to compare to xterm:

#!/bin/sh
printf '\033[0m' # clear
printf '\033[48;2;255;0;0mtest\n'

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

# not red:
printf '\033[0m' # clear
printf '\033[48:2;255:0:0mtest\n'
printf '\033[0m' # clear
printf '\033[48:2;255:0;0mtest\n'
printf '\033[0m' # clear

-- 
Kind regards,
Hiltjo
Received on Wed May 01 2024 - 20:52:13 CEST

This archive was generated by hypermail 2.3.0 : Wed May 01 2024 - 21:00:41 CEST