Home GnuPG

tty: Support line editing by system.

Description

tty: Support line editing by system.

* tty/pinentry-tty.c (terminal_setup): Not cbreak, but only no echo.
(confirm, read_password): Don't do editing here.
[HAVE_DOSISH_SYSTEM] (confirm, read_password): Return
GPG_ERR_FULLY_CANCELED when EINTR and it's not timed out.
(tty_cmd_handler): Call sigaction for SIGINT.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 27 2019, 8:55 AM
Parents
rPb176a8ac0dcd: Exit the loop on an error with GPG_ERR_FULLY_CANCELED.
Branches
Unknown
Tags
Unknown