]> _ Git - termbox2.git/log
termbox2.git
3 years agoadd readme
Adam Saponara [Sun, 24 Oct 2021 00:48:05 +0000 (20:48 -0400)]
add readme

3 years agoreplace linear cap search with trie.
Adam Saponara [Sun, 19 Sep 2021 01:07:56 +0000 (21:07 -0400)]
replace linear cap search with trie.

for every input, termbox used to iterate over termcaps one
at a time, `strncmp`ing it to the input buffer. the benefit
of this approach was that it had a very simple
implementation. the downside was that it was inefficient,
increasingly so as we added more caps such as modified
arrow keys.

the trie makes it easy to detect when there are overlaps in
termcaps. the obvious one is `TB_KEY_ESC` versus all other
escape codes. in the future we can modify function
`extract_esc_cap` to, e.g., potentially return `TB_KEY_ESC`
in `TB_INPUT_ALT` mode if no further input is available
after a certain amount of time.

3 years agoadd license header
Adam Saponara [Sun, 19 Sep 2021 01:05:52 +0000 (21:05 -0400)]
add license header

3 years agoadd cap kcbt (TB_KEY_BACK_TAB)
Adam Saponara [Sun, 19 Sep 2021 01:05:17 +0000 (21:05 -0400)]
add cap kcbt (TB_KEY_BACK_TAB)

3 years agotermbox rewrite (wip)
Adam Saponara [Tue, 7 Sep 2021 01:53:45 +0000 (21:53 -0400)]
termbox rewrite (wip)