Changeset View
Changeset View
Standalone View
Standalone View
b/pinentry/pinentry-curses.c
Context not available. | |||||
return 0; | return 0; | ||||
} | } | ||||
static FILE *debugfp; | |||||
/* XXX Assume that field width is at least > 5. */ | /* XXX Assume that field width is at least > 5. */ | ||||
static void | static void | ||||
dialog_input (dialog_t diag, int alt, int chr) | dialog_input (dialog_t diag, int alt, int chr) | ||||
Context not available. | |||||
/* Remap alt-backspace to control-W. */ | /* Remap alt-backspace to control-W. */ | ||||
chr = 'w' - 'a' + 1; | chr = 'w' - 'a' + 1; | ||||
if (! debugfp) | |||||
debugfp = fopen("/tmp/pinentry-curses-output.txt", "w"); | |||||
if (debugfp) | |||||
{ | |||||
fprintf (debugfp, "%x\n", chr); | |||||
fflush (debugfp); | |||||
} | |||||
switch (chr) | switch (chr) | ||||
{ | { | ||||
case KEY_BACKSPACE: | case KEY_BACKSPACE: | ||||
Context not available. |