From fae7332ebf0f059039a8ede16a57da9646051159 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 21 Dec 2020 21:55:03 +0100 Subject: lineedit: add a comment about possible use of tcflush() Signed-off-by: Denys Vlasenko --- libbb/lineedit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb') diff --git a/libbb/lineedit.c b/libbb/lineedit.c index b3e7abac5..499be4972 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -2911,6 +2911,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman * before it comes in. UGLY! */ usleep(20*1000); +// MAYBE? tcflush(STDIN_FILENO, TCIFLUSH); /* flushes data received but not read */ } #endif -- cgit v1.2.3