From fafe12b264b5566f2d05f7829cbf618331845452 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 15 Apr 2007 16:25:09 +0000 Subject: allow systat(1) to be exited with 'q' like top(1). ok beck@ ckuethe@ hshoexer@ millert@ --- usr.bin/systat/keyboard.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c index dc3511cf8d0..03b85760af2 100644 --- a/usr.bin/systat/keyboard.c +++ b/usr.bin/systat/keyboard.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keyboard.c,v 1.18 2006/03/31 04:10:59 deraadt Exp $ */ +/* $OpenBSD: keyboard.c,v 1.19 2007/04/15 16:25:08 matthieu Exp $ */ /* $NetBSD: keyboard.c,v 1.2 1995/01/20 08:51:59 jtc Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: keyboard.c,v 1.18 2006/03/31 04:10:59 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: keyboard.c,v 1.19 2007/04/15 16:25:08 matthieu Exp $"; #endif /* not lint */ #include @@ -109,6 +109,9 @@ keyboard(void) continue; case ':': break; + case 'q': + gotdie=1; + break; default: continue; } -- cgit v1.2.3