Ao ler uma das respostas à "Capture characters from standard input without waiting for enter to be pressed" me deparei com os termos "raw mode" e "cooked mode":
I found this on another forum while looking to solve the same problem. I've modified it a bit from what I found. It works great. I'm running OS X, so if you're running Microsoft, you'll need to find the correct system() command to switch to raw and cooked modes.
Já pesquisei, mas não acho seus significados, possivelmente porque estão mais para gírias, e se traduzirmos para o nosso idioma ("modo cru" e "modo cozido"), perde-se ainda mais o sentido. O que eles significam?
source
. obs: A pergunta original foi removida do SOen.https://stackoverflow.com/programming/<id>
, por isso não "navegou". Obs: link relacionado: Confusion about raw vs. cooked terminal modes?