From owner-freebsd-stable@FreeBSD.ORG Thu May 12 22:38:12 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF9D16A4CE for ; Thu, 12 May 2005 22:38:12 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D1F43D7F for ; Thu, 12 May 2005 22:38:12 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Thu, 12 May 2005 15:38:12 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 93CF35D07; Thu, 12 May 2005 15:38:11 -0700 (PDT) To: Giorgos Keramidas In-reply-to: Your message of "Thu, 12 May 2005 19:40:43 +0300." <20050512164043.GB42110@orion.daedalusnetworks.priv> Date: Thu, 12 May 2005 15:38:11 -0700 From: "Kevin Oberman" Message-Id: <20050512223811.93CF35D07@ptavv.es.net> cc: Scot Hetzel cc: freebsd-stable@freebsd.org Subject: Re: Strange top(1) output X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 22:38:12 -0000 > Date: Thu, 12 May 2005 19:40:43 +0300 > From: Giorgos Keramidas > Sender: owner-freebsd-stable@freebsd.org > > On 2005-05-12 09:33, Scot Hetzel wrote: > >On 5/12/05, Tuomo Latto wrote: > >>Dominic Marks wrote: > >>>>This includes at least the following changes (some not visible): > >>>> > >>>> + The entire header line is limited to the window width too. > >>>> + The USERNAME column is hard-limited to 8 characters. > >>... > >>> If this behaviour could be turned on and off, I'd be very happy. > >> > >> How about making it a command line parameter? The field size, I mean. > > > > How about using the "-w" flag to increase the size? Similar to the > > way that ps uses it now (i.e. ps -axwww). > > Cool tip. Thanks :) Please, NO! top(1) is a screen oriented command that will run (badly) in line mode. While I have often questioned the advisability of '-w' in ps(1), it does make some sense as ps(1) tends to produce line oriented output. top(1) could check the width of the display and tailor the display to that width. May screen based tools already do this and it provides a lot of flexibility. It's best to check the width for width on every update so that the screen (if its a soft terminal) may be increased and the display re-written to take advantage of that, on the fly. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634