chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit044eac165bdf48b010bceb1038d7b1f7ce732988
tree4873526bcdc7bff46ebbb0b26b39d619be1bb6dc
parent6cdfea2bf0fd711bc2a9d56d7e7b596713ad16b7
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