]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.1 - patch 20180804
authorThomas E. Dickey <dickey@invisible-island.net>
Sun, 5 Aug 2018 01:06:31 +0000 (01:06 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sun, 5 Aug 2018 01:06:31 +0000 (01:06 +0000)
+ improve logic for clear with E3 extension, in case the terminal
  scrolls content onto its saved-lines before actually clearing
  the display, by clearing the saved-lines after clearing the
  display (report/patch by Nicholas Marriott).

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
progs/clear_cmd.c

diff --git a/NEWS b/NEWS
index 03d7fa21687ee1880cfb6ec9580f36f8183ea076..c8017897167eaf9a2d256c671e3a4ec5cc399e17 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.3165 2018/07/28 23:24:55 tom Exp $
+-- $Id: NEWS,v 1.3167 2018/08/04 16:18:03 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,12 @@ 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.
 
+20180804
+       + improve logic for clear with E3 extension, in case the terminal
+         scrolls content onto its saved-lines before actually clearing
+         the display, by clearing the saved-lines after clearing the
+         display (report/patch by Nicholas Marriott).
+
 20180728
        + improve documentation regarding feature-test macros in curses.h
        + improve documentation regarding the virtual and physical screens.
diff --git a/VERSION b/VERSION
index 2364775c1619a19b2f6054926bfba1eda87f1e5b..d4f7cd83f0c320b9e90c448f18e24835313e9766 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.1     20180728
+5:0:10 6.1     20180804
diff --git a/dist.mk b/dist.mk
index 944a982efe95571d0c168a942b83eaab046f1432..4802338421198c45d368fec85b342eb5cc5344ce 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.1234 2018/07/28 13:24:09 tom Exp $
+# $Id: dist.mk,v 1.1235 2018/08/04 13:39:57 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 = 1
-NCURSES_PATCH = 20180728
+NCURSES_PATCH = 20180804
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 757f2fad191bf63c9b61b2bdb894ec30eef5e0f3..3db2ee4d7ac762072d2b7c65b2292edb21fe481a 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180728) unstable; urgency=low
+ncurses6 (6.1+20180804) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Jul 2018 09:24:09 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 04 Aug 2018 09:39:57 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 757f2fad191bf63c9b61b2bdb894ec30eef5e0f3..3db2ee4d7ac762072d2b7c65b2292edb21fe481a 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180728) unstable; urgency=low
+ncurses6 (6.1+20180804) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Jul 2018 09:24:09 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 04 Aug 2018 09:39:57 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 1cc91a6bfde6f58bc422d8e7373d9dc7ffe520d9..891feaa8c4c94f71a2d2207e89f11dd18144f566 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20180728) unstable; urgency=low
+ncurses6 (6.1+20180804) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 28 Jul 2018 09:24:09 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 04 Aug 2018 09:39:57 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 2be63424dacf7428d94e4489862d33e21019d98c..74d19343dd340af8a856f59271a87a1dd5b1f33f 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.281 2018/07/28 13:24:09 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.282 2018/08/04 13:39:57 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 "1"\r
 !define VERSION_YYYY  "2018"\r
-!define VERSION_MMDD  "0728"\r
+!define VERSION_MMDD  "0804"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 8aab34a78aab999b669082c1d8df372e2209f1f7..d371ca3751f3344cc8d44d7c391644d4bf42127b 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.1
-Release: 20180728
+Release: 20180804
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index d4fa23449f0186ab7173a5b119c90331323d330e..20b70eaf5500844d57a042aebf745d1709340a30 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.1
-Release: 20180728
+Release: 20180804
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 68a0216485bf2ee912c95d14162eb9a08de7f690..ef404a444d6eea6a1374ed592cbbd142821e7cb3 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2016,2017 Free Software Foundation, Inc.                   *
+ * Copyright (c) 2016-2017,2018 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -37,7 +37,7 @@
 #define USE_LIBTINFO
 #include <clear_cmd.h>
 
-MODULE_ID("$Id: clear_cmd.c,v 1.3 2017/10/08 00:04:26 tom Exp $")
+MODULE_ID("$Id: clear_cmd.c,v 1.4 2018/08/04 18:43:22 Nicholas.Marriott Exp $")
 
 static int
 putch(int c)
@@ -48,12 +48,12 @@ putch(int c)
 int
 clear_cmd(bool legacy)
 {
+    int retval = tputs(clear_screen, lines > 0 ? lines : 1, putch);
     if (!legacy) {
        /* Clear the scrollback buffer if possible. */
        char *E3 = tigetstr("E3");
        if (E3)
            (void) tputs(E3, lines > 0 ? lines : 1, putch);
     }
-
-    return tputs(clear_screen, lines > 0 ? lines : 1, putch);
+    return retval;
 }