Make long ddb not suck
John Baldwin
jhb at FreeBSD.org
Thu Jul 31 09:31:23 PDT 2003
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 <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
More information about the freebsd-arch
mailing list