cin.ignore requests input

I've made a function that prints text slowly (prints a character, waits x ticks, prints a character, etc), and need a way to clear cin after printing to ignore any input the user made while the function was printing. I tried using cin.clear() followed by cin.ignore(1000, 'n') but the console will pause and act like cin is requesting input from the user. here is the way i have this set up right now
1
2
3
  fancyprint("Starting up...          ", 80);
    cin.clear();
    cin.ignore(1000, 'n');


the print function itself works fine, i'm just unable to empty cin afterwards.
Try the delimiter '\n' (newline) rather than 'n' (the lowercase letter n).

Though if the user has not actually made any input, this will still wait.
Topic archived. No new replies allowed.