modify terminfo setup for compatibility