<p dir="ltr">It's a mystery to me why all these different combinations exist for exiting, when there is a key on the keyboard specifically designed for exiting. Why do so few programmers like to use the Esc key for exiting? It's a mystery to me, when the escape key has been on the keyboard "for ever" and still often is unused by programs several decades after it was put there for this specific purpose. I guess the answer is that programmers are not even half as smart as they think they are. ;-)<br>
It's as stupid as creating a computer where the on/off button wouldn't turn on the computers power but instead would type the letter G, or the Shift key would type the letter A, or pressing the A-key would type 143, and left-clicking the mouse would turn on the computer and right-clicking would turn it off.</p>
<p dir="ltr">There is also a similar Brake-key that's almost never used(Ctrl+Pause/Brake or Fn+Pause/Brake on my computers), so there are actually two different keys for exiting. Esc is the softer exit key, while brake is the harder exit key that was supposed to make the operating system entirely stop and exit a program.</p>
<p dir="ltr">Instead "dumb" programmers try to make their programs harder to use by creating a number of different ways of exiting, like Ctrl+C, Q, Ctrl+Q, Ctrl+D, Ctrl+Z, F10, F12, ~qy, etc. It's obviously easier for mankind to send people to the moon, than it is for programmers to agree to use the most logical and user friendly keys on the keyboard. ;-)</p>
<p dir="ltr">While this is not an answer to the question, it's a funny discussion related to the matter so please forgive me for sharing my thoughts. :-)</p>
<p dir="ltr">/David</p>
<div class="gmail_quote">Den 17 nov 2014 11:46 skrev "Fabian Nick" <<a href="mailto:fabian.nick@scai.fraunhofer.de">fabian.nick@scai.fraunhofer.de</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bernhard,<br>
<br>
I tried CTRL+D before but it didn't work.<br>
After your e-mail I tried again and pressed CTRL+D TWICE and that 'worked':<br>
<br>
I called gpg -r "NAME", typed a message, hit CTRL+D twice. However it returns:<br>
"Keine gültigen OpenPGP-Daten gefunden.<br>
gpg: processing message failed: Unbekannter Systemfehler"<br>
<br>
Fabian<br>
<br>
* From: Bernhard Reiter (<a href="mailto:bernhard@intevation.de" target="_blank">bernhard@intevation.de</a>)<br>
* To: Fabian Nick (<a href="mailto:fabian.nick@scai.fraunhofer.de" target="_blank">fabian.nick@scai.fraunhofer.<u></u>de</a>)<br>
* Sent:  17.11.2014 at 11:12 +0100<br>
* Subject: Re: [Gpg4win-users-en] How do I exit the text editor in gpg?<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
there is no text editor in gpg.  I guess gpg is waiting for input from<br>
"stdin" which is everything you type in the terminal window.  To<br>
terminate this input you enter Control-Z or F6 on Windows.<br>
</blockquote></blockquote>
<br>
On Monday 17 November 2014 at 10:55:28, Fabian Nick wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And how about Linux?<br>
</blockquote>
<br>
(Best asked on <a href="http://lists.gnupg.org/pipermail/gnupg-users/" target="_blank">http://lists.gnupg.org/<u></u>pipermail/gnupg-users/</a>)<br>
<br>
man stty<br>
stty -a<br>
[..] eof = ^D [..]<br>
which means control-D. For the detailed technical background on unix,<br>
see <a href="http://www.linusakesson.net/programming/tty/" target="_blank">http://www.linusakesson.net/<u></u>programming/tty/</a><br>
<br>
:)<br>
Bernhard<br>
ps.: Like my response?<br>
I appreciate if you flattr Gpg4win at <a href="https://flattr.com/thing/2053326" target="_blank">https://flattr.com/thing/<u></u>2053326</a> Thanks!<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Gpg4win-users-en mailing list<br>
<a href="mailto:Gpg4win-users-en@wald.intevation.org" target="_blank">Gpg4win-users-en@wald.<u></u>intevation.org</a><br>
<a href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-users-en" target="_blank">https://lists.wald.intevation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>gpg4win-users-en</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
Gpg4win-users-en mailing list<br>
<a href="mailto:Gpg4win-users-en@wald.intevation.org" target="_blank">Gpg4win-users-en@wald.<u></u>intevation.org</a><br>
<a href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/gpg4win-users-en" target="_blank">https://lists.wald.intevation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>gpg4win-users-en</a><br>
</blockquote></div>