[comp.lang.c++] streambuf question

cszohagan@qut.edu.au (02/07/89)

I'm currently seeking to implement a new class winbuf derived
from the class streambuf defined in <stream.hpp>.  I plan to
use this as an interface to the <curses.h> library.
My problem is finding some documentation about redefining the
overflow()/underflow() virtual functions.  Can anyone send me
a spec.  Or has anyone done it ?  I'm not after anything fancy
at this stage, just something that will redefine cin/cout/cerr
to a window in place of ordinary terminal output.

I'm using the Zortech compiler and the PCCurses PD library.

Thanks,
Tony O'Hagan
ACSNET,CSNET: tony@qitfit.qitcs.oz  ARPA: tony%qitfit.qitcs.oz@uunet.css.gov
JANET: qitfit.qitcs.oz!tony@ukc	    UUCP: ...!uunet!munnari!qitfit.qitcs.oz!tony