When using pinpad entry, GnuPG invokes pinentry and then kill it. It's OK killing pinentry program when it's GUI, but when it runs on terminal, the terminal remains cbreak an noecho mode. --