Index: b/pinentry/pinentry-curses.c =================================================================== --- b/pinentry/pinentry-curses.c +++ b/pinentry/pinentry-curses.c @@ -849,10 +849,14 @@ switch (c) { -#ifndef HAVE_DOSISH_SYSTEM case ERR: +#ifndef HAVE_DOSISH_SYSTEM continue; +#else + done = -2; + break; #endif + case KEY_LEFT: case KEY_UP: switch (diag.pos)