Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2019 10:02:10 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Mike Karels <karels@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r351379 - head/usr.bin/w
Message-ID:  <20191017100210.GA43419@FreeBSD.org>
In-Reply-To: <201908220328.x7M3SVDU089700@repo.freebsd.org>
References:  <201908220328.x7M3SVDU089700@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 22, 2019 at 03:28:31AM +0000, Mike Karels wrote:
> New Revision: 351379
> URL: https://svnweb.freebsd.org/changeset/base/351379
> 
> Log:
>   Change w(1) to compute FROM (host) field size dynamically
>   
>   It's nice to be able to display a full IPv6 host address if
>   needed, but it's also nice to display more than 3 characters of a command
>   line. Compute the needed size for the FROM column in an earlier pass,
>   and determine the maximum, then print what fits for the command.

Thank you Mike, this had been bugging me for quite a while!  Now I only
need one-line W_DISPUSERSIZE=8 patch to get my perfect w(1). :-)

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191017100210.GA43419>