All my research has lead to there is no standard way to do this, but someone must have this lying around in some way or another.
Long story short, I need an (effective, i know it doesn't exist) std::readline with timeout. I'd prefer a cross platform way, but I'm actually writing for windows so I'll take that if nessisary. I allready have a boost dependency, so I don't mind using boost.
My forays down the path of boost::asio always seem to end in dead ends: for example:
How to asynchronously read input from command line using boost asio in Windows?
The conclusion seems to be that you just can't use the stdin handle with that solution.
Anyone got a better way?