nsf/termbox-go — pull request #13 by mortdeus (2012-10-27 16:45:12+00:00)
Title: Ubuntu termbox workaround.

I made it so on a last ditch effort before termbox panics about ubuntus crappy terminfo support, it will check if A. Were on linux. B. On our last attempt through the loop. C, have "xterm" as the return string of os.GetEnv("TERM"). If these conditions are true then we search to see if /lib/terminfo/x/xterm exists. If it does great termbox works. If it doesnt exist then I print instructions to install ncurses-base and insure that $TERM is set correctly.

This will work for now in regards to making termbox and packages that use it as a dependency simple to go get without having to dig into the source to connect the dots like I did., ill go ahead and post an issue for ubuntus terminfo regarding this so we can eventually pull this code out if you want because its kinda of an ugly workaround imho.