tags:

views:

24

answers:

1

Is there a way I can have a pad refresh to any window instead of (presumably) stdscr? I suppose I could temporarily change stdscr every time I want to draw the pad, but that seems a little silly.

+1  A: 

I just happened to have exactly same need for such function and I was more lucky: Try copywin function, it should do what you need. However - unlike prefresh - it doesn't do the refresh - you have to refresh the destination window yourself to display copied data.

http://nfosolutions.com/doc_link/C/a_doc_lib/libs/basetrf2/copywin.htm

random wanderer