shrc: Better checking of the terminfo entry for xterm-a-alike terminals.