Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2006 16:31:49 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/finger sprint.c
Message-ID:  <20060304162902.X61086@fledge.watson.org>
In-Reply-To: <20060304162108.GF11030@garage.freebsd.pl>
References:  <200603041613.k24GDHcJ055133@repoman.freebsd.org> <20060304162108.GF11030@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 4 Mar 2006, Pawel Jakub Dawidek wrote:

> On Sat, Mar 04, 2006 at 04:13:16PM +0000, Robert Watson wrote:
> +>   Reduce number of spaces for full name by four, and reduce padding
> +>   after tty entry by one space in order to provide extra spaces for
> +>   the tty entry.  As a result, full pts names are now visible (up
> +>   to 999 pts's anyway):
>
> I object!:)
>
> +>   Before:
> +>   Login            Name                 TTY  Idle  Login  Time   Office  Phone
> +>   robert           Robert Watson       *v0   3:55  Fri    02:54
>                      Pawel Jakub Dawidek
>
> +>   After:
> +>   Login            Name             TTY      Idle  Login  Time   Office  Phone
> +>   robert           Robert Watson   *v0       5:08  Fri    02:54
>                      Pawel Jakub Daw

I was thinking that the only really *useful* information here anyway was the 
pty name, so how about the following layout:

Login   TTY                                                            Idle
robert  pts/383261947927375619273649127464589123912498712439124723947  always

BTW, the Linux layout solution is to allow the line to wrap, which I think is 
pretty ugly.  One place we could crib additional space is that we put 
two-space gaps between columns, and could reduce that universally to one 
space.  This might reduce readability for data that involves spaces, such as 
login date.  Another possibility is to trim the username a little earlier -- 
right now we have a very wide user column compared to other systems due to 
making room for 16-character usernames, which are not supported on on some 
other systems.

You didn't need those four letters anyway. :-)

Robert N M Watson



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