Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.sbin/sysinst



Martin Husemann wrote:

> On Wed, Feb 27, 2019 at 07:33:11PM +1100, Simon Burge wrote:
> > Looking at the code in question, is reducing the number of calls to
> > addstr() really something that needs to be optimised?  A simple
> > 
> > 	for (n = 0; n < win->ws_col; n++)
> > 		addstr("-");
> > 
> > is a lot easier to understand!
>
> Yeah I wondered that too - are they going to show up sequentially
> though, or will it all be defered untill the next update? I often use
> it via a 9600bps serial console and would like to avoid incremental
> changes.

addstr() just adjusts stdscr.  The line after these is:

	refresh();

which will do the actual screen refresh/update.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index