only provide proxy where db is unmatched (u'')

and, proxy hpa and vpa for 'ansi' terminals. I've
noticed on OSX, 'ansi' *does* provide hpa and vpa,
but on linux, it does not.  This change covers
both.