Take the 2-minute tour ×  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?  share|improve this
question I think you would be better of saying "can the C++
language do this alone, or do I need a library of some kind".
What exactly do you mean by a Platform? A version of a C++
Compiler? A library that