properly select xterm if stterm isn't in termcap