From owner-cvs-src Fri Mar 21 1:30:57 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 596AF37B401; Fri, 21 Mar 2003 01:30:55 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47B2043FBD; Fri, 21 Mar 2003 01:30:54 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2L9Up1f005302; Fri, 21 Mar 2003 10:30:52 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Giorgos Keramidas Cc: src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin Makefile src/usr.sbin/gstat Makefile gstat.c From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 21 Mar 2003 05:11:22 +0200." <20030321031122.GA3832@gothmog.gr> Date: Fri, 21 Mar 2003 10:30:51 +0100 Message-ID: <5301.1048239051@critter.freebsd.dk> Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Please just commit it yourself :-) In message <20030321031122.GA3832@gothmog.gr>, Giorgos Keramidas writes: >On 2003-03-20 12:48, Poul-Henning Kamp wrote: >> phk 2003/03/20 12:48:41 PST >> >> FreeBSD src repository >> >> Modified files: >> usr.sbin Makefile >> Added files: >> usr.sbin/gstat Makefile gstat.c >> Log: >> Add a rudimentary gstat(8) to the system. >> >> This is a small curses based program which shows the diskactivity >> inside GEOM. > >It's a good idea to call endwin() too at the end of a curses program. >Otherwise my terminal remains in cbreak mode which is a bit annoying, >since it messes things up royally :) > >--- patch start --- >Index: gstat.c >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/gstat/gstat.c,v >retrieving revision 1.1 >diff -u -r1.1 gstat.c >--- gstat.c 20 Mar 2003 20:48:41 -0000 1.1 >+++ gstat.c 21 Mar 2003 03:08:28 -0000 >@@ -228,5 +228,7 @@ > break; > } > } >+ >+ endwin(); > exit (0); > } >--- patch end --- > > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message