core: New command getinfo/ttyinfo
* pinentry/pinentry.c (remember_display): New var. (pinentry_have_display): Peek at --display. (pinentry_parse_opts): Set pinentry.display. (cmd_getinfo): Add sub-command "ttyinfo".
- Signed-off-by: Werner Koch <wk@gnupg.org>