ConsoleOutput.cxx revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1996 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __GNUG__
#pragma implementation
#endif
#include "splib.h"
#include "ConsoleOutput.h"
#ifdef SP_WIDE_SYSTEM
#include <windows.h>
#include <io.h>
#endif
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
#ifdef SP_WIDE_SYSTEM
class ConsoleOutputCharStream : public OutputCharStream {
public:
void flush();
private:
};
{
if (GetConsoleMode(h, &flags))
return new ConsoleOutputCharStream(h);
else
return 0;
}
: h_(h)
{
}
void ConsoleOutputCharStream::flush()
{
}
{
unsigned short ch = c;
return;
char buf[2];
if (nBytes)
}
#else /* not SP_WIDE_SYSTEM */
{
return 0;
}
#endif /* not SP_WIDE_SYSTEM */
#ifdef SP_NAMESPACE
}
#endif