CVSROOT:        /cvs
Module name:    src
Changes by:     es...@cvs.openbsd.org   2016/06/23 10:11:23

Modified files:
        usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm ProgressMeter.pm 
                                  State.pm 
        usr.sbin/pkg_add/OpenBSD/ProgressMeter: Term.pm 

Log message:
there's no reason for window size computation to be linked to the
ProgressMeter, so make it available from state.
- computation is lazy, so no runtime difference;
- don't bother setting a SIG{WINCH} on non-tty;
- progressmeter already has access to state;
- do an empty window_size_changed in base state, override it for
addcreatedelete to inform the progressmeter.

to be reused in dpb...

Reply via email to