Commit graph

4 commits

Author SHA1 Message Date
Daniel Eklöf
eb185bfa47
utils/xtgettcap: fix possible NULL deref, found by -fanalyzer 2024-08-14 08:53:21 +02:00
Daniel Eklöf
a3debf7741
dcs: xtgettcap: always reply with tigetstr(3) formatted "strings"
That is, instead of sometimes replying with a "source" encoded
string (where e.g. '\E' are returned just like that, and not as an
actual ESC), always unescape all string values.

This also includes \n \r \t \b \f \s, \^ \\ \ \:, as well as ^x-styled
escapes.

Closes #1701
2024-04-27 09:38:55 +02:00
Daniel Eklöf
807e193854
xtgettcap: exit immediately when there are no capabilities to query for 2022-10-10 17:17:38 +02:00
Daniel Eklöf
9937d92c85
utils: xtgettcap: new utility, to send XTGETTCAP queries 2022-10-07 14:40:22 +02:00