From owner-cvs-src-old@FreeBSD.ORG Thu Jan 15 03:12:56 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31D3F10656C1 for ; Thu, 15 Jan 2009 03:12:56 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1E91B8FC14 for ; Thu, 15 Jan 2009 03:12:56 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0F3CtOU056546 for ; Thu, 15 Jan 2009 03:12:56 GMT (envelope-from keramida@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0F3Ctjl056545 for cvs-src-old@freebsd.org; Thu, 15 Jan 2009 03:12:55 GMT (envelope-from keramida@repoman.freebsd.org) Message-Id: <200901150312.n0F3Ctjl056545@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to keramida@repoman.freebsd.org using -f From: Giorgos Keramidas Date: Thu, 15 Jan 2009 03:12:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/usr.sbin/iostat iostat.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 03:12:56 -0000 keramida 2009-01-15 03:12:45 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) usr.sbin/iostat iostat.c Log: SVN rev 187265 on 2009-01-15 03:12:45Z by keramida MFC 175562 from /head 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. Revision Changes Path 1.36.2.3 +71 -3 src/usr.sbin/iostat/iostat.c