nsf/termbox-go — pull request #9 by guelfey (2012-10-10 15:01:05+00:00)
Title: Implement terminfo database; close files in Close(); other minor changes

Hi,

after I used your (awesome) library for a little project of mine, I took the liberty of improving some things. Aside from 2 minor changes, the improvements are:

1. `terminfo.go` is not generated by a script anymore, but actually uses the terminfo database. I used the ncurses man pages (`term(5)` and `terminfo(5)`), as well as one header file (`term.h`) to write functions that retrieve the strings for the special keys and functions from the terminfo database, based on the `TERM` environment variable. See the comment in terminfo.go for more information.

2. I fixed the closing issue on Darwin (or at least I think I have; I haven't tested it on Darwin yet). So, `termbox.Close()` now actually closes the file descriptors.