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 {
|
do {
|
||||||
if ( again ) { cout << "Your option? " ; }
|
if ( again ) { cout << "Your option? " ; }
|
||||||
again = 1 ;
|
again = 1 ;
|
||||||
cout << "(Y/N): ";
|
cout << "(Y/N): " << flush;
|
||||||
line = ReadString();
|
line = ReadString();
|
||||||
response = toupper(line[0]);
|
response = toupper(line[0]);
|
||||||
} while ((response != 'Y') && (response != 'N'));
|
} while ((response != 'Y') && (response != 'N'));
|
||||||
|
|||||||
Reference in New Issue
Block a user