diff --git a/c/src/p2fa.c b/c/src/p2fa.c index e94d646..c3e36f0 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -67,6 +67,7 @@ void home(UWORD *blackImage) { int i = 0; int ch; while (1) { + timeout(-1); ch = getch(); if (ch != ERR) { switch(ch) { @@ -77,6 +78,7 @@ void home(UWORD *blackImage) { if (i < length - 1) i++; break; case '\n': + timeout(0); GoString goConfigName; goConfigName.p = configNames[i]; goConfigName.n = strlen(configNames[i]);