Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 02:30:02 -0800 (PST)
From:      MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/13196: [BTX] page in BTX has problem(quit key)
Message-ID:  <199911301030.CAA17058@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/13196; it has been noted by GNATS.

From: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
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




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