Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 22:30:07 +0200
From:      Diomidis Spinellis <dds@aueb.gr>
To:        Giorgos Keramidas <keramida@FreeBSD.ORG>
Cc:        svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG
Subject:   Re: svn commit: r184645 - head/usr.bin/vmstat
Message-ID:  <BA9CF772-DA8B-429E-BDB8-73A65FA8CC5B@aueb.gr>
In-Reply-To: <200811041802.mA4I2aVk003708@svn.freebsd.org>
References:  <200811041802.mA4I2aVk003708@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 4, 2008, at 8:02 PM, Giorgos Keramidas wrote:

> Author: keramida (doc committer)
> Date: Tue Nov  4 18:02:35 2008
> New Revision: 184645
> URL: http://svn.freebsd.org/changeset/base/184645
>
> Log:
>   Repeat vmstat header after window.rows instead of a hardcoded 20.
>
>   Use ioctl() to get the window size in vmstat(8), and force a new
>   header to be prepended to the output every time the current window
>   size changes.  Change the number of lines before each header to the
>   current lines of the terminal when the terminal is resized, so that
>   the full terminal length can be used for output lines.
>
>   Inspired by:	svn change 175562 (same feature for iostat)
>   Reviewed by:	ru (who fixed some of my bugs too)

Thanks!  This functionality is generally useful and tricky to code in  
a correct way.  Should we perhaps package it in a library function,  
so that all header-printing commands can benefit from it, without  
repeating the code?

Diomidis Spinellis - dds@



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA9CF772-DA8B-429E-BDB8-73A65FA8CC5B>