Xref: utzoo comp.unix.ultrix:7598 comp.terminals:2922 comp.unix.questions:32079 Newsgroups: comp.unix.ultrix,comp.terminals,comp.unix.questions Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!forwiss.uni-passau.de!gengenba From: gengenba@forwiss.uni-passau.de (Michael Gengenbach) Subject: Mixing curses and printf output with Ultrix X/Open curses? Message-ID: <1991Jun11.080015.1530@forwiss.uni-passau.de> Followup-To: comp.unix.ultrix Sender: usenet@forwiss.uni-passau.de (USENET News System) Nntp-Posting-Host: forwiss.uni-passau.de Organization: University of Passau, Germany Date: Tue, 11 Jun 91 08:00:15 GMT Lines: 22 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