{"id":5592,"date":"2018-03-22T15:02:03","date_gmt":"2018-03-22T13:02:03","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5592"},"modified":"2018-03-22T15:02:03","modified_gmt":"2018-03-22T13:02:03","slug":"interrupting-pinentry-tty-with-ctrl-c-leaves-the-terminal-broken","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/03\/22\/interrupting-pinentry-tty-with-ctrl-c-leaves-the-terminal-broken\/","title":{"rendered":"Interrupting pinentry-tty with ctrl-c leaves the terminal broken"},"content":{"rendered":"<p>When pinentry-tty is used to prompt for the password, interrupting the prompt using ctrl-c leaves the terminal only partially working: only some letter keys are echoed back.<\/p>\n<p>The terminal remains in this broken state for about a minute, after which it resets itself and everything starts working again.<\/p>\n<p>Below, I&#8217;m swiping through all alphabet and numeric keys of my keyboard at both 14.54, where only &#8221;469+esgxb&#8221; gets through, and again at 14.55 (the last line), where they all come through.<\/p>\n<p>14.54 jani@saegusa:testej\u00e4$ export LC_ALL=C<br \/>\n14.54 jani@saegusa:testej\u00e4$ { sleep 60; echo &#8221;60 seconds passed&#8221;; } &amp; LC_ALL=C \/usr\/bin\/gpg -d passwords.gpg<br \/>\n[1] 12375<br \/>\ngpg: AES encrypted data<br \/>\nEnter passphrase<\/p>\n<p>Passphrase:<br \/>\ngpg: signal Interrupt caught &#8230; exiting<\/p>\n<p>14.54 jani@saegusa:testej\u00e4$ 469+esgxb^C<br \/>\n14.55 jani@saegusa:testej\u00e4$ 60 seconds passed<\/p>\n<p>[1]+  Done                    { sleep 60; echo &#8221;60 seconds passed&#8221;; }<br \/>\n14.55 jani@saegusa:testej\u00e4$ 1234567890+wertyuiop\u00e5asdfghjkl\u00f6\u00e4zxcvbnm,.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The terminal remains in this broken state for about a minute, after which it resets itself and everything starts working again.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[3408],"class_list":["post-5592","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-gnupg","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5592"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5592\/revisions"}],"predecessor-version":[{"id":5593,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5592\/revisions\/5593"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}