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