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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user