Mixing curses and printf output with Ultrix X/Open curses?

Michael Gengenbach gengenba at forwiss.uni-passau.de
Tue Jun 11 18:00:15 AEST 1991


Hello,

I want to mix output done with curses with output from printf. This is for
functions like a menu handler which I want to provide for a student project.
I will provide functions using curses and the students will use normal
printf.

I thought a good way would be to call initscr() and endwin() in each of
my functions. But after calling initscr() and endwin() the first time,
printf() doesn't flush the output anymore. Is this a bug or a feature?
And what can I do about it? Is there an ioctl-call to fix it (I played
with TIOCFLUSH, but it didn't work)? I don't want a fflush() after each
printf :-)

If it matters: I use g++ 1.37.1 on a DECstation running Ultrix 4.1 and
the X/Open curses (libcursesX.a). I've built my own cursesX.h for C++.

Thanks for any help.

Michael
-- 
Michael Gengenbach, FORWISS Passau, gengenbach at forwiss.uni-passau.de



More information about the Comp.unix.ultrix mailing list