I want to process ncurses input (from
wgetch, a blocking API) and output from a child process (that I’m currently sending through an
mpsc::Receiver) as they’re received. I need to do this on a single thread since ncurses isn’t multithreaded.
In C land, it looks like someone accomplished something similar with
What’s the “rustic” way of doing this? I’m not sure if it’s possible to integrate tokio with ncurses (maybe with the
blocking annotation?). I wasn’t able to get
poll to work with the child FD – I just ran into deadlock while waiting for the child to be read from.