Started on terminfo, populating trie.
Added button<->name map, unit tests.