From 534f70844a425bb0d9ddc8327559b2ba360e0b82 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 22 May 2026 14:37:42 +0200 Subject: [PATCH] tools --- login.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/login.c b/login.c index b4e7c7e..6657631 100644 --- a/login.c +++ b/login.c @@ -83,7 +83,10 @@ static int get_raw_str(uint8 *s, int maxlen, int doecho) case 8 : if (len) { --len; --s; - if (doecho) fprintf(stdout, "\010 \010"); + if (doecho) { + fprintf(stdout, "\010 \010"); + fflush(stdout); + } } else beep(); continue; @@ -94,7 +97,10 @@ static int get_raw_str(uint8 *s, int maxlen, int doecho) len++; break; } /* switch */ - if (doecho) fprintf(stdout, "%c", (uint8)key); + if (doecho) { + fprintf(stdout, "%c", (uint8)key); + fflush(stdout); + } } *s='\0'; return(len);