]> _ Git - termbox2.git/commit
make `tb_print*` functions a little kinder
authorAdam Saponara <as@php.net>
Sat, 27 Jul 2024 20:59:09 +0000 (16:59 -0400)
committerAdam <as@php.net>
Tue, 3 Sep 2024 03:19:53 +0000 (23:19 -0400)
commitb075ddd4723c6dbbc932f8785b80837364ac0718
tree3494fb7ce45fe069f5aea665878b483d80f57b8d
parentcd42ba388bbdd66b9bcc587defd55e2c449450a5
make `tb_print*` functions a little kinder

* handle newlines. previously they would mess up rendering.
* replace other non-printable codepoints with U+FFFD.
* skip over cells that would go out of bounds instead of erroring.
termbox2.h
tests/test_print/expected.ansi [new file with mode: 0644]
tests/test_print/test.php [new file with mode: 0755]