On GNU/Linux running gpg and clicking C-c to send SIGINT:
$ gpg gpg: WARNING: no command supplied. Trying to guess what you mean ... gpg: Go ahead and type your message ... ^C gpg: signal Interrupt caught ... exiting
The same thing on Solaris 11.4:
$ gpg gpg: Warning: using insecure memory! gpg: WARNING: no command supplied. Trying to guess what you mean ... gpg: Go ahead and type your message ... ^C gpg: signal 2 caught ... exiting
This can be fixed by using _sys_siglist in get_signal_name from common/signal.c