]> _ Git - termbox2.git/log
termbox2.git
2 months agofix terminfo header memory check master
Chongyu Guo [Wed, 30 Apr 2025 10:27:17 +0000 (18:27 +0800)]
fix terminfo header memory check

2 months agofix alignment warnings
Adam Saponara [Tue, 29 Apr 2025 01:45:55 +0000 (21:45 -0400)]
fix alignment warnings

some architectures don't support reading an `int16_t` on an odd
memory. so several `int16_t` explicit casts while parsing terminfo
caps emit warnings. change these to `memcpy` to fix.

replace `header[n]` with variable names in `parse_terminfo_caps`.

2 months agoupdate copyright year
Adam Saponara [Wed, 23 Apr 2025 03:24:49 +0000 (23:24 -0400)]
update copyright year

2 months agocomments and fmt
Adam Saponara [Wed, 23 Apr 2025 02:58:17 +0000 (22:58 -0400)]
comments and fmt

2 months agofix bug in `TB_OPT_LIBC_WCHAR`
Adam Saponara [Wed, 23 Apr 2025 02:49:32 +0000 (22:49 -0400)]
fix bug in `TB_OPT_LIBC_WCHAR`

found by running tests with that option flagged on:

```
$ CFLAGS='-UTB_LIB_OPTS -DTB_OPT_LIBC_WCHAR -DTB_OPT_ATTR_W=64 -DTB_OPT_EGC' make test
```

2 months agoadd built-in replacements for `iswprint(3)` and `wcwidth(3)`
Adam Saponara [Mon, 21 Apr 2025 04:34:59 +0000 (00:34 -0400)]
add built-in replacements for `iswprint(3)` and `wcwidth(3)`

in b075ddd, we added an `iswprint` check to prevent untrusted input
from garbling the terminal. `iswprint` is locale-dependent, so if the
caller did not `setlocale` to a UTF-8 `LC_CTYPE`, the check would
fail. this affected several library users.

termbox has always had built-in support for converting between UTF-8
and 32-bit codepoints (i.e., replacements for `wcrtomb(3)` and
`mbrtowc(3)`). this patch adds built-in support for `iswprint` and
`wcwidth` as well, which makes the entire library Unicode compatible
independent of locale.

a compile-time option to use the libc versions is supported.

5 months agoc++ compilation error with TB_OPT_EGC defined
korei999 [Thu, 16 Jan 2025 22:52:08 +0000 (00:52 +0200)]
c++ compilation error with TB_OPT_EGC defined

6 months agobump version
Adam Saponara [Sat, 28 Dec 2024 02:24:19 +0000 (21:24 -0500)]
bump version

6 months agobump test env from debian 12 to debian 13
Adam Saponara [Sat, 28 Dec 2024 02:19:03 +0000 (21:19 -0500)]
bump test env from debian 12 to debian 13

debian 13 comes with a newer version of xterm which has some changes
in `print-immediate`. this requires us to update test fixtures. the
changes are:

          test_64bit: invisible was previously emitted as spaces.
                      now emitted with escape codes.

     test_color_true: 0x808080 was previously emitted as
                      128:128:120. now emitted as 128:128:128.

            test_egc: fullwidth char with combining characters was
                      previously emitted with U+FFFF (invalid) in the
                      2nd cell, now emitted without.

   test_invalid_utf8: U+FFFD (replacement char) is now emitted as
                      a hash char ("#").

  test_non_printable: ditto

          test_print: ditto

also bump php from 8.3 to 8.4.

6 months agofix egc memory error
Adam Saponara [Wed, 18 Dec 2024 03:52:59 +0000 (22:52 -0500)]
fix egc memory error

this was copying too many bytes to the dest cell (8-bytes for a
pointer vs 4-bytes for a uint32_t).

6 months agofix egc memory error
Adam Saponara [Wed, 18 Dec 2024 03:51:33 +0000 (22:51 -0500)]
fix egc memory error

ensure space allocated for null-terminator

6 months agofix bug with adding combining chars to a full-width char
Adam Saponara [Wed, 18 Dec 2024 03:12:25 +0000 (22:12 -0500)]
fix bug with adding combining chars to a full-width char

the logic was incorrectly sending the combinin char to x-1, but that
assumed a wcwidth==1 char. save last printed x coord and use that
instead.

xterm's ansi output for this is a little strange. unlike other
`expected.ansi` files, cat-ing this one to stdout doesn't seem to
render the correct output, and if you peek at its contents you'll see
some "\xef\xbf\xbf" (U+FFFF) which is an invalid codepoint. in any
case, it still picks up the regression so i'm adding it.

8 months agoAdded odin language bindings repo
sudokit [Fri, 18 Oct 2024 18:34:09 +0000 (21:34 +0300)]
Added odin language bindings repo

8 months agoFix errors and warnings when compiling with c++.
Oskar Strengbohm [Tue, 8 Oct 2024 12:04:50 +0000 (14:04 +0200)]
Fix errors and warnings when compiling with c++.

8 months ago`setlocale` in demo
Adam Saponara [Fri, 4 Oct 2024 23:33:51 +0000 (19:33 -0400)]
`setlocale` in demo

since around cd42ba3, we rely on `iswprint`, which itself is
locale-dependent. callers using unicode (like the demo) must be sure
to set a unicode locale prior to initializing.

9 months agoAdd `xtxf` example
-k [Sat, 21 Sep 2024 02:30:33 +0000 (19:30 -0700)]
Add `xtxf` example

9 months agoMention Node.js wrapper on README
Rauli Laine [Sat, 14 Sep 2024 19:31:39 +0000 (22:31 +0300)]
Mention Node.js wrapper on README

I recently created termbox2 (termbox1 already exists but is
unmaintained) wrapper library for Node.js JavaScript engine
and thought it would be nice to mention about it in README.md in case
anyone else than me needs one.

10 months agonormalize comments and `make terminfo format`
Adam Saponara [Tue, 3 Sep 2024 04:18:02 +0000 (00:18 -0400)]
normalize comments and `make terminfo format`

10 months agomake `tb_print*` functions a little kinder
Adam Saponara [Sat, 27 Jul 2024 20:59:09 +0000 (16:59 -0400)]
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.

10 months agosend non-printable codepoints as U+FFFD
Adam Saponara [Thu, 25 Jul 2024 02:12:24 +0000 (22:12 -0400)]
send non-printable codepoints as U+FFFD

11 months agoadd note about required feature test macros
Adam Saponara [Sun, 28 Jul 2024 22:54:03 +0000 (18:54 -0400)]
add note about required feature test macros

11 months agofor cells skipped due to double-width chars, set them to invalid
Adam Saponara [Sun, 21 Jul 2024 21:31:07 +0000 (17:31 -0400)]
for cells skipped due to double-width chars, set them to invalid
codepoints instead of null (0) which is a valid codepoint.

11 months agoadd deprecation notices
Adam Saponara [Sun, 14 Jul 2024 23:39:49 +0000 (19:39 -0400)]
add deprecation notices

12 months agobump test env versions
Adam Saponara [Sat, 8 Jun 2024 01:39:50 +0000 (21:39 -0400)]
bump test env versions

Debian 11 -> Debian 12
PHP 8.0 -> 8.3

12 months agoremove usage of __ prefix
iusevoidbtw [Sat, 8 Jun 2024 01:33:02 +0000 (21:33 -0400)]
remove usage of __ prefix

12 months agoAdd const
Danylo Kondratiev [Fri, 7 Jun 2024 09:32:54 +0000 (12:32 +0300)]
Add const

13 months agoin keyboard demo, retry poll on `EINTR`
Adam Saponara [Sat, 18 May 2024 00:02:22 +0000 (20:02 -0400)]
in keyboard demo, retry poll on `EINTR`

SIGWINCH may interrupt the `select` call leading to `TB_ERR_POLL`
with `errno` of EINTR. retry in this case instead of exiting.

16 months agofix compiler warning
Adam Saponara [Fri, 9 Feb 2024 02:01:56 +0000 (21:01 -0500)]
fix compiler warning

16 months agobump version
Adam Saponara [Fri, 9 Feb 2024 01:54:38 +0000 (20:54 -0500)]
bump version

16 months agoupdate docs
Adam Saponara [Fri, 9 Feb 2024 01:52:17 +0000 (20:52 -0500)]
update docs

16 months agonull-terminate output of `tb_utf8_unicode_to_char`
Adam Saponara [Fri, 9 Feb 2024 01:50:22 +0000 (20:50 -0500)]
null-terminate output of `tb_utf8_unicode_to_char`

16 months agoupdate copyright year
Adam Saponara [Fri, 9 Feb 2024 01:46:37 +0000 (20:46 -0500)]
update copyright year

16 months agopermit overriding docker in makefile (like with podman)
Adam Saponara [Fri, 9 Feb 2024 01:45:07 +0000 (20:45 -0500)]
permit overriding docker in makefile (like with podman)

16 months agostop reading at null-terminator in `tb_utf8_char_to_unicode` (#63)
Adam Saponara [Fri, 9 Feb 2024 01:40:24 +0000 (20:40 -0500)]
stop reading at null-terminator in `tb_utf8_char_to_unicode` (#63)

if this occurs in `tb_print_ex`, replace the invalid character with a U+FFFD.

16 months agofix compile warning in demo
Adam Saponara [Fri, 17 Nov 2023 01:03:06 +0000 (20:03 -0500)]
fix compile warning in demo

```
In file included from demo/keyboard.c:5:
demo/keyboard.c: In function ‘draw_keyboard’:
demo/../termbox2.h:252:33: warning: unsigned conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} changes value from ‘16777222’ to ‘6’ [-Woverflow]
  252 | #define TB_MAGENTA              0x0006
      |                                 ^
demo/keyboard.c:512:22: note: in expansion of macro ‘TB_MAGENTA’
  512 |     printf_tb(33, 1, TB_MAGENTA | TB_BOLD, TB_DEFAULT, "Keyboard demo!");
```

19 months agoREADME: add Chez Scheme's letloop to bindings list.
ⵄⵎⵉⵔⵓⵛ [Sat, 18 Nov 2023 18:36:45 +0000 (19:36 +0100)]
README: add Chez Scheme's letloop to bindings list.

19 months agodelete unnecessary if_not_init_return() check in tb_set_cell()
Mitchell Rosen [Tue, 14 Nov 2023 20:01:00 +0000 (15:01 -0500)]
delete unnecessary if_not_init_return() check in tb_set_cell()

19 months agoupdate readme
Adam Saponara [Fri, 17 Nov 2023 00:43:39 +0000 (19:43 -0500)]
update readme

19 months agofix egc bug, clarify docs, add test
Adam Saponara [Tue, 7 Nov 2023 03:21:02 +0000 (22:21 -0500)]
fix egc bug, clarify docs, add test

21 months agoadd nim example
Adam Saponara [Fri, 22 Sep 2023 04:46:25 +0000 (00:46 -0400)]
add nim example

22 months agoupdate readme
Adam Saponara [Tue, 22 Aug 2023 03:24:38 +0000 (23:24 -0400)]
update readme

22 months agoupdate readme
Adam Saponara [Sat, 19 Aug 2023 23:17:22 +0000 (19:17 -0400)]
update readme

23 months agoparse test macros from `gcc -E -dM` output instead of the raw header
Adam Saponara [Thu, 13 Jul 2023 08:23:41 +0000 (04:23 -0400)]
parse test macros from `gcc -E -dM` output instead of the raw header

previously we had no way intelligently parsing out conditional
defines such as:

```c
```

we would parse out TB_XYZ twice and overwrite the first value. this
was breaking tests as we now, for example, have TB_BOLD defined
conditionally.

we are now parsing the output of `gcc -E -dM` instead which give us a
simple list of macro key-vals after the preprocessor has executed.

23 months agoadd support for more style attrs and 64-bit attrs (#56)
Adam Saponara [Thu, 13 Jul 2023 06:57:59 +0000 (02:57 -0400)]
add support for more style attrs and 64-bit attrs (#56)

probably should have broken this into multiple commits but it was all
inter-related:

* deprecate TB_OPT_TRUECOLOR in favor of TB_OPT_ATTR_W which defaults
  to 16, but can be 32 (truecolor) or 64 (truecolor + additional
  styles). for back compat, TB_OPT_TRUECOLOR sets TB_OPT_ATTR_W to 32
  if not already set.

* add TB_BRIGHT, available in TB_OUTPUT_NORMAL only.

* add TB_DIM and TB_INVISIBLE. TB_INVISIBLE is available only when
  TB_OPT_ATTR_W=64.

* add TB_STRIKEOUT, TB_UNDERLINE_2, TB_OVERLINE, available only when
  TB_OPT_ATTR_W=64. these are hard-coded caps because they don't
  appear to be in terminfo.

* deprecate TB_256_BLACK and TB_TRUECOLOR_BLACK in favor of
  TB_HI_BLACK which can be used in any of the hi-color modes.

* deprecate all TB_TRUECOLOR_* style attributes. users can use
  TB_BOLD, TB_UNDERLINE, etc in truecolor mode now.

* add tests for new features.

* document compile-time options.

23 months agoignore cap collisions
Adam Saponara [Fri, 7 Jul 2023 03:04:48 +0000 (23:04 -0400)]
ignore cap collisions

many terms have duplicate escape codes even for our modest subset of
caps. see inline comment for an example as well as a todo.

23 months agointerpret oob terminfo strings as absent caps
Adam Saponara [Fri, 7 Jul 2023 02:58:04 +0000 (22:58 -0400)]
interpret oob terminfo strings as absent caps

if either the string offset or string value is beyond the entry
bounds, interpret this as an absent cap. several terms seem to do
this.

this behavior is still slightly stricter than ncurses which ignores
corrupt or truncated terminfo entries. we still error in that case.

23 months agoskip empty caps (#57)
Adam Saponara [Fri, 7 Jul 2023 00:30:14 +0000 (20:30 -0400)]
skip empty caps (#57)

this slipped under the radar because none of the built-in terms have
more than one empty key cap, or an empty string for one of the caps
we use in init/shutdown.

some terms do of course have multiple empty caps. for example,
`xterm-color` is missing `khome`, `kend`, and `kcbt` (back-tab),
which leads to adding `""` more than once, which leads to a
`TB_ERR_CAP_COLLISION` error on init. other terms don't have caps for
hiding and showing the cursor, for example.

to avoid these errors, we avoid adding empty caps to the trie, and
similarly avoid emitting empty caps.

it's kind of hard to add a functional test for this as it gets into
testing multiple term envs and terminal emulators which is a bit of a
pandora's box. as an alternative, i'm going to do some more manual
testing on various terms on my system.

2 years agoupdate readme
Adam Saponara [Fri, 9 Jun 2023 03:43:40 +0000 (23:43 -0400)]
update readme

2 years agoupdate readme
Adam Saponara [Mon, 5 Jun 2023 05:32:41 +0000 (01:32 -0400)]
update readme

2 years agopermit single-line-if in clang-format
Adam Saponara [Sun, 4 Jun 2023 17:08:44 +0000 (13:08 -0400)]
permit single-line-if in clang-format

2 years agoavoid setting `PATH_MAX` (use `TB_PATH_MAX`) h/t @rofl0r
Adam Saponara [Sun, 4 Jun 2023 17:06:16 +0000 (13:06 -0400)]
avoid setting `PATH_MAX` (use `TB_PATH_MAX`) h/t @rofl0r

2 years agodefine `PATH_MAX` if undefined
Adam Saponara [Fri, 2 Jun 2023 23:16:04 +0000 (19:16 -0400)]
define `PATH_MAX` if undefined

some architectures apparently don't define it. e.g.:

https://buildd.debian.org/status/fetch.php?pkg=mle&arch=hurd-i386&ver=1.5.0-1&stamp=1654066958&raw=0

2 years agoadd: a demo in rust
rilysh [Wed, 17 May 2023 01:58:35 +0000 (21:58 -0400)]
add: a demo in rust

2 years agoadd clang-format makefile rule
Adam Saponara [Sat, 6 May 2023 01:02:31 +0000 (21:02 -0400)]
add clang-format makefile rule

2 years agoadd example in dlang
Adam Saponara [Sat, 29 Apr 2023 17:45:52 +0000 (13:45 -0400)]
add example in dlang

2 years agoinvalidate last_(fg|bg) after mode switch
Adam Saponara [Mon, 3 Apr 2023 00:06:56 +0000 (20:06 -0400)]
invalidate last_(fg|bg) after mode switch

last_(fg|bg) are no longer valid after a mode switch. see the test
for an example of the bug in action.

2 years agomake test_basic version agnostic
Adam Saponara [Mon, 3 Apr 2023 00:06:14 +0000 (20:06 -0400)]
make test_basic version agnostic

2 years agoadd `tb_invalidate`
Adam Saponara [Mon, 3 Apr 2023 00:05:35 +0000 (20:05 -0400)]
add `tb_invalidate`

2 years agorestore `TB_DEFAULT==0` in all modes (#51)
Adam Saponara [Sun, 2 Apr 2023 22:10:10 +0000 (18:10 -0400)]
restore `TB_DEFAULT==0` in all modes (#51)

this removes `TB_TRUECOLOR_DEFAULT` added in 846bba4b and goes back to
`TB_DEFAULT==0` in all modes. instead, hi-bit macros `TB_256_BLACK`
and `TB_TRUECOLOR_BLACK` are added which provide a way to emit black
in those modes.

turns out there were some subtle bugs associated with `TB_DEFAULT!=0`
(in addition to the bug identified in #51). the bugs were fixable but
required uglying up some code. zero as default in all modes is more
intuitive and easier to reason about (e.g., `memset(..., 0, ...)`).

2 years agoupdate copyright date
Adam Saponara [Sun, 2 Apr 2023 19:07:43 +0000 (15:07 -0400)]
update copyright date

2 years agotermbox -> termbox2 (#53)
Adam Saponara [Sun, 2 Apr 2023 19:05:55 +0000 (15:05 -0400)]
termbox -> termbox2 (#53)

2 years agoadd example `lavat` (#47)
Adam Saponara [Mon, 17 Oct 2022 22:59:04 +0000 (18:59 -0400)]
add example `lavat` (#47)

2 years agofix the no-cap case of `get_terminfo_string`
Adam Saponara [Thu, 6 Oct 2022 06:03:04 +0000 (02:03 -0400)]
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`.

2 years agoFixed narrowing conversions, cast some values where deemed safe
Daniel [Mon, 19 Sep 2022 09:18:45 +0000 (11:18 +0200)]
Fixed narrowing conversions, cast some values where deemed safe

2 years agoAdded (void) to functions taking no args
Daniel [Mon, 19 Sep 2022 05:42:38 +0000 (07:42 +0200)]
Added (void) to functions taking no args

2 years agostrerror -> strerror_r (#43)
Adam Saponara [Sun, 18 Sep 2022 22:59:47 +0000 (18:59 -0400)]
strerror -> strerror_r (#43)

2 years agocomments
Adam Saponara [Sun, 18 Sep 2022 22:59:33 +0000 (18:59 -0400)]
comments

2 years agosupport default colors in non-`TB_OUTPUT_NORMAL` modes (#41)
Adam Saponara [Sun, 18 Sep 2022 22:05:50 +0000 (18:05 -0400)]
support default colors in non-`TB_OUTPUT_NORMAL` modes (#41)

`TB_DEFAULT` is now defined as a bitwise attribute similar to
`TB_BOLD`. previously it was defined as 0 which made it impossible to
use default colors in non-`TB_OUTPUT_NORMAL` modes.

for convenience and limited back-compat, 0 is still interpreted as
`TB_DEFAULT` in `TB_OUTPUT_NORMAL`, `TB_OUTPUT_216`, and
`TB_OUTPUT_GRAYSCALE`, though `TB_DEFAULT` may be used as well.

in `TB_OUTPUT_256` and `TB_OUTPUT_TRUECOLOR`, 0 is black, so
`TB_DEFAULT` and `TB_TRUECOLOR_DEFAULT` respectively must be used if
a default color is desired.

2 years agoadd tb_version
Adam Saponara [Sun, 18 Sep 2022 19:19:34 +0000 (15:19 -0400)]
add tb_version

2 years agoprevent compile-time option mismatch when used as library
Adam Saponara [Thu, 4 Aug 2022 05:37:58 +0000 (01:37 -0400)]
prevent compile-time option mismatch when used as library

2 years agoadd soname and install rules
Adam Saponara [Tue, 2 Aug 2022 02:43:37 +0000 (22:43 -0400)]
add soname and install rules

3 years agoadd examples in other languages
Adam Saponara [Tue, 5 Jul 2022 04:42:16 +0000 (00:42 -0400)]
add examples in other languages

3 years agoadd .gitignore
Adam Saponara [Mon, 27 Jun 2022 01:01:22 +0000 (21:01 -0400)]
add .gitignore

3 years agofactor out ffi creation
Adam Saponara [Sun, 26 Jun 2022 20:06:30 +0000 (16:06 -0400)]
factor out ffi creation

3 years agoadd TODO about resize errors
Adam Saponara [Sat, 25 Jun 2022 03:37:05 +0000 (23:37 -0400)]
add TODO about resize errors

3 years agodocument optimistic nature of tb_set_output_mode (#37)
Adam Saponara [Sat, 25 Jun 2022 03:27:44 +0000 (23:27 -0400)]
document optimistic nature of tb_set_output_mode (#37)

3 years agomake resize immediate
Adam Saponara [Tue, 21 Jun 2022 23:39:56 +0000 (19:39 -0400)]
make resize immediate

3 years agoadd demo image
Adam Saponara [Sat, 18 Jun 2022 04:39:58 +0000 (00:39 -0400)]
add demo image

3 years agoswitch back to select() as poll() is broken on implementations like mac OS
git-bruh [Wed, 15 Jun 2022 11:12:23 +0000 (16:42 +0530)]
switch back to select() as poll() is broken on implementations like mac OS

3 years agoconvert test_mod from xvkdb- to memfd-based test (was flaky)
Adam Saponara [Sat, 4 Jun 2022 22:43:54 +0000 (18:43 -0400)]
convert test_mod from xvkdb- to memfd-based test (was flaky)

3 years agoRun tests for non-truecolor and non-egc builds.
Adam Saponara [Sat, 4 Jun 2022 21:27:20 +0000 (17:27 -0400)]
Run tests for non-truecolor and non-egc builds.

This patch introduces a few new things:

* Build artifact termbox.ffi.h for easier FFI header file parsing. As a result, no more `__ffi_strip` bs, but probably more complex overall. The other idea I had would have been uglier. I think the test coverage is worth it.

* Functions `tb_has_truecolor` and `tb_has_egc` for determining support for those features at runtime.

* Test container uses `debian:11-slim` image instead of `debian:10-slim`.

* Test container uses PHP 8 instead of PHP 7.

* Test container now accepts `cflags` build argument.

* Tests can now be skipped via `$test->skip()`.

* Test suite covers 3 different builds: normal, non-truecolor, non-egc.

3 years agoadd a few missing if_err_return and fmt
Adam Saponara [Fri, 3 Jun 2022 23:51:52 +0000 (19:51 -0400)]
add a few missing if_err_return and fmt

3 years agofix non-truecolor (#26)
Adam Saponara [Fri, 3 Jun 2022 23:50:48 +0000 (19:50 -0400)]
fix non-truecolor (#26)

3 years agoadd `TB_BLINK` and `TB_TRUECOLOR_*` attributes (#16)
Adam Saponara [Wed, 1 Jun 2022 02:05:14 +0000 (22:05 -0400)]
add `TB_BLINK` and `TB_TRUECOLOR_*` attributes (#16)

3 years agoupdate docs concerning style attributes (#24)
Adam Saponara [Tue, 31 May 2022 01:35:18 +0000 (21:35 -0400)]
update docs concerning style attributes (#24)

in particular, document the hidden feature of applying `TB_BOLD` as a
background attribute, which emits `TB_CAP_BLINK`.

3 years agoClarify what 0x08-0x0f in TB_OUTPUT_256 means, a bit
Mitchell Rosen [Mon, 2 May 2022 19:58:29 +0000 (15:58 -0400)]
Clarify what 0x08-0x0f in TB_OUTPUT_256 means, a bit

3 years agoupdate docs for TB_INPUT_MOUSE (#20)
Adam Saponara [Mon, 2 May 2022 17:04:57 +0000 (13:04 -0400)]
update docs for TB_INPUT_MOUSE (#20)

3 years ago[0..216] -> [0..215]
Mitchell Rosen [Mon, 2 May 2022 02:35:25 +0000 (22:35 -0400)]
[0..216] -> [0..215]

3 years agoupdate readme with examples (#19)
Adam Saponara [Sun, 27 Feb 2022 22:41:37 +0000 (17:41 -0500)]
update readme with examples (#19)

3 years agoadd build rule for static lib
Adam Saponara [Sun, 27 Feb 2022 22:41:06 +0000 (17:41 -0500)]
add build rule for static lib

3 years agodefine required feature test macros
Adam Saponara [Sun, 27 Feb 2022 22:40:31 +0000 (17:40 -0500)]
define required feature test macros

3 years agoActually fix non-truecolor build
git-bruh [Wed, 26 Jan 2022 07:23:57 +0000 (12:53 +0530)]
Actually fix non-truecolor build

3 years agofix build without truecolor
git-bruh [Tue, 25 Jan 2022 08:56:15 +0000 (14:26 +0530)]
fix build without truecolor

3 years agosave errno in resize handler, deinit signal handler in tb_shutdown()
git-bruh [Mon, 10 Jan 2022 11:32:26 +0000 (17:02 +0530)]
save errno in resize handler, deinit signal handler in tb_shutdown()

3 years agoprevent emitting attrs in true-color mode
Adam Saponara [Tue, 25 Jan 2022 03:59:07 +0000 (22:59 -0500)]
prevent emitting attrs in true-color mode

3 years agofix some warnings
Adam Saponara [Mon, 10 Jan 2022 02:56:59 +0000 (21:56 -0500)]
fix some warnings

3 years agofmt termbox.h
Adam Saponara [Mon, 10 Jan 2022 02:56:39 +0000 (21:56 -0500)]
fmt termbox.h

3 years agoadd mouse support
Wolf Gupta [Mon, 10 Jan 2022 02:43:35 +0000 (08:13 +0530)]
add mouse support

3 years agoadd test for f715214
Adam Saponara [Fri, 7 Jan 2022 00:31:58 +0000 (19:31 -0500)]
add test for f715214

3 years agofix `#define` regex in tests
Adam Saponara [Fri, 7 Jan 2022 00:10:36 +0000 (19:10 -0500)]
fix `#define` regex in tests