support: flush cout in GetNumber
uClibc++ does not implicitly do this before getline. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ uint64_t GetNumber(uint64_t low, uint64_t high, uint64_t def, const string & pro
|
|||||||
|
|
||||||
if (low != high) { // bother only if low and high differ...
|
if (low != high) { // bother only if low and high differ...
|
||||||
do {
|
do {
|
||||||
cout << prompt;
|
cout << prompt << flush;
|
||||||
cin.getline(line, 255);
|
cin.getline(line, 255);
|
||||||
if (!cin.good())
|
if (!cin.good())
|
||||||
exit(5);
|
exit(5);
|
||||||
|
|||||||
Reference in New Issue
Block a user