aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-21 21:55:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-21 21:55:03 +0100
commitfae7332ebf0f059039a8ede16a57da9646051159 (patch)
treebea9272e2acefadcaba526dc81e238e89f11080b /libbb
parent00eb23b47aa79461b913b320eba3c95b90e6eec4 (diff)
downloadbusybox-fae7332ebf0f059039a8ede16a57da9646051159.tar.gz
lineedit: add a comment about possible use of tcflush()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c1
1 files changed, 1 insertions, 0 deletions
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