From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 22 16:13:39 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC9DE1065675 for ; Fri, 22 Jul 2011 16:13:39 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5206F8FC15 for ; Fri, 22 Jul 2011 16:13:39 +0000 (UTC) Received: by wwe6 with SMTP id 6so2309240wwe.31 for ; Fri, 22 Jul 2011 09:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:from:content-type:subject:date:message-id:to:mime-version :x-mailer; bh=WpwY6MGr9D0AzysOevzk55fkBa20q2Df48HpPy1m/X4=; b=VyHUrl79AXUGcdTj6ft/qvZHfIkMDZZRzKhIs2d5eVV7ToSMBwnMuXMMp60epoGLAF GErHmnHg2EOvvVKEhaGrYdf3Eke6db6DgjwaPwUAi5T4UWrVlA9hzzZ9X4+UOKO5t9Fc RFN95rDuIBMPtFKNgvjj0J4upPQvAbYSNRQls= Received: by 10.216.235.133 with SMTP id u5mr1883299weq.101.1311349893254; Fri, 22 Jul 2011 08:51:33 -0700 (PDT) Received: from [192.168.1.102] (45.81.datacomsa.pl [195.34.81.45]) by mx.google.com with ESMTPS id a63sm1632683wed.8.2011.07.22.08.51.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jul 2011 08:51:32 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Date: Fri, 22 Jul 2011 17:51:28 +0200 Message-Id: <0CEA161B-6767-4379-B923-585B3D4EA74E@freebsd.org> To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Autosizing column widths in ps(1). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 16:13:39 -0000 Patch below changes ps(1) to automatically size column widths according = to their contents. =46rom the user point of view, it prevents breaking layout = with too wide values and in most cases makes output narrower. =46rom the developer point of = view, it removes the need to specify widths. Testing is welcome - the patch shouldn't = change ps(1) behaviour except slightly changing the widths, but the code changes are = pretty large and it's quite possible I've missed something. http://people.freebsd.org/~trasz/ps-8.diff -- If you cut off my head, what would I say? Me and my head, or me and my = body?