gengenba@forwiss.uni-passau.de (Michael Gengenbach) (06/11/91)
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@forwiss.uni-passau.de