From ec4d385aa3c9fec03e06a7db3fee7d906a69c82f Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 24 Jun 1998 14:44:52 +0000 Subject: [PATCH] Beep if no help is defined for a menu. --- usr.bin/menuc/menu_sys.def | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr.bin/menuc/menu_sys.def b/usr.bin/menuc/menu_sys.def index c486009fb809..b32331529392 100644 --- a/usr.bin/menuc/menu_sys.def +++ b/usr.bin/menuc/menu_sys.def @@ -1,4 +1,4 @@ -/* $NetBSD: menu_sys.def,v 1.5 1998/06/24 06:46:24 phil Exp $ */ +/* $NetBSD: menu_sys.def,v 1.6 1998/06/24 14:44:52 phil Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -228,6 +228,13 @@ static void process_help (struct menudesc *m, int num) int again; int winin; + /* Is there help? */ + if (!help) { + mbeep(); + return; + } + + /* Display the help information. */ do { if (lineoff < curoff) { help = m->helpstr;