support: Flush cout in GetYN

uClibc++ does not implicitly flush cout before getline.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-10-07 15:36:31 -07:00
parent 9e6016b07f
commit 5542b160fa

View File

@@ -101,7 +101,7 @@ char GetYN(void) {
do {
if ( again ) { cout << "Your option? " ; }
again = 1 ;
cout << "(Y/N): ";
cout << "(Y/N): " << flush;
line = ReadString();
response = toupper(line[0]);
} while ((response != 'Y') && (response != 'N'));