]> Sergey Matveev's repositories - st.git/commit
Eat up "CSI 58" sequences
authorsasha <sasha.code@posteo.mx>
Sun, 27 Jul 2025 05:43:47 +0000 (05:43 +0000)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 27 Jul 2025 18:06:54 +0000 (20:06 +0200)
commitf114bcedd113017d907aad32031db92c050f4bf3
tree4cbd1eca84396af81b36ba1740b1aecc81e3ddc7
parent98610fcd37f655d44586323dc86c1d013c2798ce
Eat up "CSI 58" sequences

This is used in the wild by systemd systemctl for example and st
misinterpreted it as "blink", because it didn't know "58", then saw "5"
as "blink", and then didn't know "245".

This should print "foo" as normal text:

    printf '\e[58:5:245mfoo\n'
    printf '\e[58:2:50:100:200mfoo\n'
st.c