Allow internal routine _tget() to look into terminfo, termcap or variable via a parameter, preparation for tgoto and al.