]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.0 - patch 20160702
authorThomas E. Dickey <dickey@invisible-island.net>
Sun, 3 Jul 2016 00:26:06 +0000 (00:26 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sun, 3 Jul 2016 00:26:06 +0000 (00:26 +0000)
+ improve test/list_keys.c, using $TERM if no parameters areg given.

NEWS
VERSION
dist.mk
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
test/list_keys.c

diff --git a/NEWS b/NEWS
index 140b0011d28e7e7155ab4aa1fe1ee92531618b38..6af578b515cf51ad2e60a1b07f19c7ca37bfd8fa 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,7 +25,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.2624 2016/06/25 21:23:38 tom Exp $
+-- $Id: NEWS,v 1.2626 2016/07/02 18:29:57 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,9 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20160702
+       + improve test/list_keys.c, using $TERM if no parameters areg given.
+
 20160625
        + build-fixes for ncurses "test_progs" rule.
        + amend change to CF_CC_ENV_FLAGS in 20160521 to make multilib build
diff --git a/VERSION b/VERSION
index 5c267827c236b79605767eca0ce5830230f51e47..8f874c4b7fad28593c9ea9ba40260204f06bc495 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:9  6.0     20160625
+5:0:9  6.0     20160702
diff --git a/dist.mk b/dist.mk
index b06bc4f8c61147dd13e3d64ea81f2a7b7b6a76f9..21e935b4d6c7b8e5caaee88e54e577e782876e05 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1112 2016/06/25 17:17:16 tom Exp $
+# $Id: dist.mk,v 1.1113 2016/07/02 17:00:31 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 0
-NCURSES_PATCH = 20160625
+NCURSES_PATCH = 20160702
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index c53f8a01d9c74988eab342de78198cc8d823c44a..304c0885bf0da7060c0bc6962d5f07d2bd36cc7e 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20160625) unstable; urgency=low
+ncurses6 (6.0+20160702) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 25 Jun 2016 13:17:16 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 02 Jul 2016 13:00:31 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index c53f8a01d9c74988eab342de78198cc8d823c44a..304c0885bf0da7060c0bc6962d5f07d2bd36cc7e 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20160625) unstable; urgency=low
+ncurses6 (6.0+20160702) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 25 Jun 2016 13:17:16 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 02 Jul 2016 13:00:31 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 0d3c8ca0fd49da8d0ea5e1754ce1fe45f075e407..bdbf2b494eceafb8e4523625404bb53bf988d4e3 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20160625) unstable; urgency=low
+ncurses6 (6.0+20160702) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 25 Jun 2016 13:17:16 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 02 Jul 2016 13:00:31 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index dbe5f266b92dd4283e3b3f904b587e5951963605..9abdaee96c359e5d7f8e6ebb760b87a32008c7a9 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.164 2016/06/25 17:17:16 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.165 2016/07/02 17:00:31 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "0"\r
 !define VERSION_YYYY  "2016"\r
-!define VERSION_MMDD  "0625"\r
+!define VERSION_MMDD  "0702"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 5e46474ef268e4ee725733b7926bfe9b41e17ae8..a24081b786b618d3831ba054af4934a48fc3f35e 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.0
-Release: 20160625
+Release: 20160702
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 68400890e68b719daa7aab762bcf26875814c823..06d7af47e1fab25197cb4934d11155ff511b89fb 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.0
-Release: 20160625
+Release: 20160702
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index b43dd37ab73f324ff5cecbc77937b329e68337ff..87c04c970cd20e3a94c5b03489cca9009b19039f 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: list_keys.c,v 1.9 2016/06/18 22:18:30 tom Exp $
+ * $Id: list_keys.c,v 1.12 2016/07/02 23:45:53 tom Exp $
  *
  * Author: Thomas E Dickey
  *
@@ -88,7 +88,7 @@ show_key(const char *name, bool show)
 {
     int width = 0;
     char buffer[10];
-    char *value = tigetstr(name);
+    NCURSES_CONST char *value = tigetstr(name);
 
     if (show && t_opt)
        fputc('"', stdout);
@@ -329,6 +329,7 @@ list_keys(TERMINAL ** terms, int count)
            printf("\n");
        }
     }
+    free(list);
 }
 
 static void
@@ -358,7 +359,7 @@ int
 main(int argc, char *argv[])
 {
     int n;
-    TERMINAL **terms = typeCalloc(TERMINAL *, argc);
+    TERMINAL **terms = typeCalloc(TERMINAL *, argc + 1);
 
     while ((n = getopt(argc, argv, "ftx")) != -1) {
        switch (n) {
@@ -383,11 +384,22 @@ main(int argc, char *argv[])
     use_extended_names(x_opt);
 #endif
 
-    for (n = optind; n < argc; ++n) {
-       setupterm((NCURSES_CONST char *) argv[n], 1, (int *) 0);
-       terms[n - optind] = cur_term;
+    if (optind < argc) {
+       int found = 0;
+       int status;
+       for (n = optind; n < argc; ++n) {
+           setupterm((NCURSES_CONST char *) argv[n], 1, &status);
+           if (status > 0 && cur_term != 0) {
+               terms[found++] = cur_term;
+           }
+       }
+       if (found)
+           list_keys(terms, found);
+    } else {
+       setupterm(NULL, 1, (int *) 0);
+       terms[0] = cur_term;
+       list_keys(terms, 1);
     }
-    list_keys(terms, argc - optind);
 
     ExitProgram(EXIT_SUCCESS);
 }