From owner-freebsd-arch@FreeBSD.ORG Thu Jul 31 09:31:22 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DE1937B43E for ; Thu, 31 Jul 2003 09:31:22 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5BC643F75 for ; Thu, 31 Jul 2003 09:31:21 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 27780 invoked from network); 31 Jul 2003 16:31:21 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 31 Jul 2003 16:31:21 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h6VGVJGI071586; Thu, 31 Jul 2003 12:31:19 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030731182956.T5869@gamplex.bde.org> Date: Thu, 31 Jul 2003 12:31:39 -0400 (EDT) From: John Baldwin To: Bruce Evans cc: arch@freebsd.org Subject: Re: Make long ddb not suck X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 16:31:23 -0000 On 31-Jul-2003 Bruce Evans wrote: >> I have a patch that adds a simple paging facility to ddb at the >> db_printf() level using a one-shot callback mechanism. It includes >> a simple paging callback that rearms itself based on the users >> input (space does another page, enter another line). I've used this >> facility to replace the hand-rolled paging in 'ps', 'show pci', and >> 'show ktr'. The patch is at http://www.FreeBSD.org/~jhb/patches/ddb.patch >> >> Comments? > > I like it. It also needs to have some idea of line lengths, so that > 20-line pages with too-long lines don't scroll off 25-line terminals. That's harder. :) That might can be added in the future however. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/