fix BSD terminfo