pdcurses-l  

[PDCurses] redirect stdout to a window?

Pavol Severa
Mon, 11 Sep 2006 08:03:39 -0700

(this is a C newbie question)

I'd like text printed with printf() to appear and stay on stdscr. What
is a reasonable way to do it? So far my plan is (not implemented yet):
1.create a temporary file
2.redirect stdout to the file using freopen
3.read the file and write it to stdscr
4.close and delete the file
Should I do it that way?