go terminfo parser