terminfo: parse all the capabilities.