That appears to solve the blocking issue. Thanks a lot for pointing this out (was starting to pull my hair out).
Like you said, tail keeps running for some reason, but if I write one more char to...
Type: Posts; User: berrydev
That appears to solve the blocking issue. Thanks a lot for pointing this out (was starting to pull my hair out).
Like you said, tail keeps running for some reason, but if I write one more char to...
Do you think forking a process and reading pipe data (stdin) from the child and then writing that data from the child into the parent would help? Am I over complicating this?
Thanks for your reply. I'm not sure why, but looks like fgets keeps blocking wgetch. The interesting part is that using `cat` (without follow mode) wgetch works, but not with tail -f.
...
I'm writing a similar version of less and am using ncurses to make it easier. However, it needs to read from stdin when data is piped-in while maintaining the ability to interact with the keyboard...