Terminal stdin issue
michael.grunditz at gmail.com
Tue Mar 2 18:28:12 CET 2021
On Tue, 2 Mar 2021 at 17:08, Michael Grunditz
<michael.grunditz at gmail.com> wrote:
> 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.
More information about the users