+ improve test/list_keys.c, using $TERM if no parameters areg given.
-- 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
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
-5:0:9 6.0 20160625
+5:0:9 6.0 20160702
# 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
# 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)
-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
-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
-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
-; $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
!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
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
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
* 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
*
{
int width = 0;
char buffer[10];
- char *value = tigetstr(name);
+ NCURSES_CONST char *value = tigetstr(name);
if (show && t_opt)
fputc('"', stdout);
printf("\n");
}
}
+ free(list);
}
static void
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) {
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);
}