CVSROOT:        /cvs
Module name:    src
Changes by:     st...@cvs.openbsd.org   2015/02/17 08:43:34

Modified files:
        usr.sbin/sysmerge: sysmerge.sh 

Log message:
Instead of a relatively complex "stty size | ( read ..." in sysmerge, use
"tput cols". (This from ajacoutot@).

Use it directly in the sdiff command, rather than saving it once at startup.
Handling window size changes at runtime makes sysmerge significantly easier
to use in common cases. Adds around .17s per sdiff invocation on my slowest
machine (486), imperceptible on a faster machine, so it seems a reasonable
trade-off.

ok ajacoutot@

Reply via email to