I would like to be able to channel two text streams to a single console window with a vertical split view. The ideal solution would be if I could simply write to two different std::ostream objects.
The reason I need it is to compare the output of two different versions of a program. I know there are simple workarounds like redirecting to file and using a diff program to view the differences. But that doesn't matter because this project is mostly just for fun.
I'm not sure however how to achieve this. Suppose that the left half has writtten 20 lines of output ahead of the right half. How do I move the cursor up to write the right half?
Can anyone give me some pointers on how to get started? Can this be done in pure C++ or do I need platform specific features?