#include <ConsoleStream.h>
Public Member Functions | |
moveTo (int xLoc, int yLoc) | |
void | action (GOut &o) const |
Using moveTo in the gout stream (and ONLY gout), will set the stream to display the next line-buffered text using an mlprintf rather than a normal mprintf. gout needs to be acquired if other threads might write to gout. The following code:
gout << acquire << moveTo(10, 15) << "Hello, World!" << flush << release;
works like mlprintf(10, 15, "Hello, World!");
. Other stuff may be before if anything is in the stream -- remember gout only displays when it encounters a newline or is explicitly flushed.
The position 0,0 is the upper left corner of the console.