Another attempt to make terminfo get selected correctly.