Page 1 of 1

console component unbuffered input

Posted: Sun May 11, 2025 5:03 pm
by moefear85
Is it possible to trigger commands by pressing individual keys without pressing enter?

Re: console component unbuffered input

Posted: Sun May 11, 2025 5:26 pm
by moefear85
nevermind,

Code: Select all

setvbuf(stdin, NULL, _IONBF, 0);
works fine with "scanf"