lineedit: add a comment about possible use of tcflush()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -2911,6 +2911,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman
|
|||||||
* before it comes in. UGLY!
|
* before it comes in. UGLY!
|
||||||
*/
|
*/
|
||||||
usleep(20*1000);
|
usleep(20*1000);
|
||||||
|
// MAYBE? tcflush(STDIN_FILENO, TCIFLUSH); /* flushes data received but not read */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user