Hi
I am trying to use terminal for stdout and stdin. Output is no problem, but I can't get input to work..
I have this:
if(select(1, &rfds, NULL, NULL,&tvp)) { log ("stdin data"); int a = fgetc(istream); log ("",Char(a));
That select always returns , and fgetc never returns, no matter how hard I hit my keyboard!
/Michael
On Tue, 2 Mar 2021 at 17:08, Michael Grunditz michael.grunditz@gmail.com wrote:
Hi
I am trying to use terminal for stdout and stdin. Output is no problem, but I can't get input to work..
I have this:
if(select(1, &rfds, NULL, NULL,&tvp)) { log ("stdin data"); int a = fgetc(istream); log ("",Char(a));
Update.. It now works that select doesn't return positive values ... but stdin seems pretty dead .. A error in run script probably.