]> _ Git - termbox2.git/commit
fix the no-cap case of `get_terminfo_string`
authorAdam Saponara <as@php.net>
Thu, 6 Oct 2022 06:03:04 +0000 (02:03 -0400)
committerAdam Saponara <as@php.net>
Thu, 6 Oct 2022 06:03:04 +0000 (02:03 -0400)
commit91a0d57e92b77279606324b972c23750fc5239c2
tree6668eea014f0e1af9270894d708d0d92bf4cc793
parentf2ee8410d2351bd2303cbc2832b43ad4ea66e1da
fix the no-cap case of `get_terminfo_string`

a negative string offset indicates the corresponding cap is
not supported on that terminal. return an empty string in
this case. previously we'd return garbage.

for a test case, observe what happens when fetching `smcup`
on `TERM=linux`.
termbox.h