pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/33916: ncurses: "reset" prints undefined interrupt character badly



The following reply was made to PR pkg/33916; it has been noted by GNATS.

From: dholland%eecs.harvard.edu@localhost (David Holland)
To: gnats-bugs%NetBSD.org@localhost
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@localhost
 



Home | Main Index | Thread Index | Old Index