Fixed terminfo not existing problem