string-util: teach strip_tab_ansi() to deal with CSO sequences
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Apr 2018 13:16:13 +0000 (15:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Apr 2018 13:58:31 +0000 (15:58 +0200)
commit695a944c648ccb8d91a9a75b66340f01e7e557dd
tree36e69ef370bd76dcf78fa64d829938141dd7242c
parent679def2a0644d4ffeb8561ac78bcc175cfd2aa25
string-util: teach strip_tab_ansi() to deal with CSO sequences

With the recent terminal_urlify() APIs we'll now sometimes generate
clickable link CSO sequences. Hence we should also be able to remove
them again from strings. This beefs up the logic to do so.

Follow-up for: 23b27b39d2a3a002ad827a2e8a9872a51495d797
src/basic/string-util.c
src/test/test-strip-tab-ansi.c