Use curses-based pinentry for gpg-agent
Set $TERM to xterm-256color under gnome-terminal