Date: Tue, 4 Nov 2008 18:02:35 +0000 (UTC) From: Giorgos Keramidas <keramida@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/vmstat vmstat.c Message-ID: <200811041802.mA4I2oHX035785@repoman.freebsd.org>
index | next in thread | raw e-mail
keramida 2008-11-04 18:02:35 UTC
FreeBSD src repository
Modified files:
usr.bin/vmstat vmstat.c
Log:
SVN rev 184645 on 2008-11-04 18:02:35Z by keramida
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)
MFC after: 1 week
Revision Changes Path
1.103 +69 -9 src/usr.bin/vmstat/vmstat.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811041802.mA4I2oHX035785>
