Another attempt at getting terminfo to be selected properly.