My project is not async in nature but I can save myself some processing work if I read as much from stdin as possible, act on all input then display all changes together.
what i'd like is something like
the current read seems to wait until either the buf is full, or EOI to return.
I would like to wait until there is something to read, then read everything available and return immediately.
stdin.read(&mut buf[..1]) //this one waits stdin.try_read(&mut buf[1..]) // this one doesn't
I've already tried converting the entire project to async. while, technically, it solved this issue (really awkwardly) it created many bigger issues.
Is there a function that exists already to do a try/poll read available somewhere?