GNE::Console::moveTo Class Reference
[Console API]

A manipulator for gout essentially meant to facilitate a C++ iostream version of mlprintf. More...

#include <ConsoleStream.h>

List of all members.

Public Member Functions

 moveTo (int xLoc, int yLoc)
void action (GOut &o) const


Detailed Description

A manipulator for gout essentially meant to facilitate a C++ iostream version of mlprintf.

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.


The documentation for this class was generated from the following files:
Generated on Tue Sep 5 23:47:51 2006 for GNE by  doxygen 1.4.7