Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 05:11:22 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Poul-Henning Kamp <phk@freebsd.org>
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
Message-ID:  <20030321031122.GA3832@gothmog.gr>
In-Reply-To: <200303202048.h2KKmgOK057174@repoman.freebsd.org>
References:  <200303202048.h2KKmgOK057174@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-03-20 12:48, Poul-Henning Kamp <phk@FreeBSD.org> 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 ---


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030321031122.GA3832>