cvs commit: src/usr.bin/finger sprint.c

Robert Watson rwatson at
Sat Mar 4 08:27:11 PST 2006

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

More information about the cvs-src mailing list