From owner-freebsd-bugs Tue Nov 30 2:30: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 66DEF15833 for ; Tue, 30 Nov 1999 02:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA17058; Tue, 30 Nov 1999 02:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Tue, 30 Nov 1999 02:30:02 -0800 (PST) Message-Id: <199911301030.CAA17058@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: MIHIRA Sanpei Yoshiro Subject: Re: kern/13196: [BTX] page in BTX has problem(quit key) Reply-To: MIHIRA Sanpei Yoshiro Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/13196; it has been noted by GNATS. From: MIHIRA Sanpei Yoshiro To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: kern/13196: [BTX] page in BTX has problem(quit key) Date: Tue, 30 Nov 1999 19:28:28 +0900 I think this problem(can't quit help mode) was only appear with ``help set tunables'', because this help is larger than screen height. I created quick hack code. Your comments are welcome :-) --- sys/boot/common/commands.c.org Tue Nov 30 18:37:05 1999 +++ sys/boot/common/commands.c Tue Nov 30 18:38:43 1999 @@ -176,8 +176,10 @@ ((subtopic != NULL) && (s != NULL) && !strcmp(subtopic, s))) { /* exact match, print text */ while((fgetstr(buf, 80, hfd) >= 0) && (buf[0] != '#')) { - pager_output(buf); - pager_output("\n"); + if (pager_output(buf)) + break; + if (pager_output("\n")) + break; } } else if ((subtopic == NULL) && (s != NULL)) { /* topic match, list subtopics */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message