Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/Query/BooleanTextQuery.cpp

    r8df74d rd754bb  
    2222#include <iostream>
    2323
    24 #include "TextUI/TextDialog.hpp"
     24#include "TextUI/Query/TextQuery.hpp"
    2525
    2626#include "Helpers/Log.hpp"
     
    3939  do{
    4040    badInput = false;
    41     Log() << Verbose(0) << getTitle();
    42     cin >> input;
     41    std::cout << getDescription() << "[y/n]: ";
     42    std::cin >> input;
    4343    if ((input == 'y' ) || (input == 'Y')) {
    4444      tmp = true;
     
    4747    } else {
    4848      badInput=true;
    49       cin.clear();
    50       cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    51       Log() << Verbose(0) << "Input was not of [yYnN]!" << endl;
     49      std::cin.clear();
     50      std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     51      std::cout << "Input was not of [yYnN]!" << std::endl;
    5252    }
    5353  } while(badInput);
    5454  // clear the input buffer of anything still in the line
    55   cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
     55  std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n');
    5656  return true;
    5757}
Note: See TracChangeset for help on using the changeset viewer.