1

I just want to know when are characters that sb enter from the keyboard stored in the buffer? I mean : when the character key is pressed, or when enter is pressed, or there is another timing? my question is especially for c++ Console apps, but it will be even better if the answers contained every case, or a general case!

thanks a lot :)

Tamer Shlash
  • 9,030
  • 4
  • 42
  • 79

1 Answers1

1

This will depend on the specific console in question.

Even though they are for different languages, same rules apply to as how the terminal/environment feeds your program with data on standard input:


This thread supposedly has a working example for Visual Studio.

Community
  • 1
  • 1
aioobe
  • 399,198
  • 105
  • 792
  • 807