fix terminfo thanks to github.com/guns/haus