freebsd-src/usr.bin/vmstat
Giorgos Keramidas 4fb6032f19 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
2008-11-04 18:02:35 +00:00
..
Makefile Add the -H, -h and -P flags to vmstat. -P causes per-cpu output of 2007-12-13 02:36:11 +00:00
vmstat.8 Add the -H, -h and -P flags to vmstat. -P causes per-cpu output of 2007-12-13 02:36:11 +00:00
vmstat.c Repeat vmstat header after window.rows instead of a hardcoded 20. 2008-11-04 18:02:35 +00:00