While looking into 2394, I noticed that the man pages for wrefresh() and 
similar routines recommend using one wnoutrefresh() per window and then 
a single doupdate() afterwards.

Currently, PowerTOP is calling wrefresh() for each window and then 
(unnecessarily) fflush'ing stdout. Each call to wrefresh() actually 
calls wnoutrefresh() and doupdate(), so the screen is flushed more times 
than it needs to.

I haven't filed a RFE for this yet, but here's a patch for it. Let me 
know what you think.

thanks
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refresh.diff
Type: text/x-patch
Size: 1989 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/tesla-dev/attachments/20080711/34f0fe60/attachment.bin>

Reply via email to