diff options
author | Giorgos Keramidas <keramida@FreeBSD.org> | 2008-01-22 11:18:51 +0000 |
---|---|---|
committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2008-01-22 11:18:51 +0000 |
commit | 53fbcd3a781af43699dca615455a5ccc83c8f078 (patch) | |
tree | 3310323b710a5c961c1cc1fc3ed01debdaa1eca3 /usr.sbin/portsnap | |
parent | d52a94aaf835e52144b4bff7b246fd1b7628758f (diff) |
Repeat iostat header after rows-3 instead of a hardcoded 20.
Use ioctl() to get the window size in iostat(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 `rows - 3' when the terminal is resized, so that the
full terminal length can be used for output lines.
PR: bin/119705
Submitted by: keramida
Approved by: maxim
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=175562
Diffstat (limited to 'usr.sbin/portsnap')
0 files changed, 0 insertions, 0 deletions