0

Hello,

I'm trying to use getch several times in my program, but it is remembering earlier key presses.

Is there a function or command I can use to clear the getch buffer? Or am is there something else I am doing wrong?

Thank you.

C.

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by chazzquire
0

Edward isn't an expert on getch, but isn't the very definition of getch to read unbuffered input directly from the keyboard? Please post your code so that Ed can get a better idea of what you're trying to do.

0

thank you for your help, and had a silly mistake earlier which was the problem. Not getch.

Cheers.
C.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.