Subject: Re: pkg/33916: ncurses: "reset" prints undefined interrupt character badly
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: David Holland <dholland@eecs.harvard.edu>
List: pkgsrc-bugs
Date: 10/08/2006 04:35:02
The following reply was made to PR pkg/33916; it has been noted by GNATS.

From: dholland@eecs.harvard.edu (David Holland)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/33916: ncurses: "reset" prints undefined interrupt character badly
Date: Sun, 8 Oct 2006 00:31:27 -0400 (EDT)

 here's a patch (tested and everything):
 
 --- progs/tset.c~	2005-09-24 20:43:52.000000000 -0400
 +++ progs/tset.c	2006-10-08 00:04:55.000000000 -0400
 @@ -1024,7 +1024,9 @@
       * Check 'delete' before 'backspace', since the key_backspace value
       * is ambiguous.
       */
 -    if (newer == 0177)
 +    if (newer == _POSIX_VDISABLE)
 +	(void) fprintf(stderr, "disabled.\n");
 +    else if (newer == 0177)
  	(void) fprintf(stderr, "delete.\n");
      else if ((p = key_backspace) != 0
  	     && newer == (unsigned char) p[0]
 
 
 -- 
    - David A. Holland / dholland@eecs.harvard.edu