svn commit: r184645 - head/usr.bin/vmstat
Diomidis Spinellis
dds at aueb.gr
Tue Nov 4 13:15:52 PST 2008
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@
More information about the svn-src-head
mailing list