need to set the tty for pinentry-curses to work