diff --git a/doc/html/man/ncurses.3x.html b/doc/html/man/ncurses.3x.html
index 5c08fa18..9a464aa1 100644
--- a/doc/html/man/ncurses.3x.html
+++ b/doc/html/man/ncurses.3x.html
@@ -61,7 +61,7 @@
displays with output optimized to minimize screen updates. ncurses
replaces the curses libraries from System V Release 4 Unix ("SVr4") and
4.4BSD Unix, the development of which ceased in the 1990s. This
- document describes ncurses version 6.5 (patch 20250315).
+ document describes ncurses version 6.5 (patch 20250322).
ncurses permits control of the terminal screen's contents; abstraction
and subdivision thereof with windows and pads; acquisition of keyboard
diff --git a/doc/html/man/terminfo.5.html b/doc/html/man/terminfo.5.html
index 81f79fbe..75701b49 100644
--- a/doc/html/man/terminfo.5.html
+++ b/doc/html/man/terminfo.5.html
@@ -71,7 +71,7 @@
have, by specifying how to perform screen operations, and by specifying
padding requirements and initialization sequences.
- This document describes ncurses version 6.5 (patch 20250315).
+ This document describes ncurses version 6.5 (patch 20250322).
diff --git a/man/curs_outopts.3x b/man/curs_outopts.3x
index 9c1b640e..78991670 100644
--- a/man/curs_outopts.3x
+++ b/man/curs_outopts.3x
@@ -27,8 +27,8 @@
.\" authorization. *
.\"***************************************************************************
.\"
-.\" $Id: curs_outopts.3x,v 1.91 2025/03/08 23:19:30 tom Exp $
-.TH curs_outopts 3X 2025-03-08 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
+.\" $Id: curs_outopts.3x,v 1.93 2025/03/22 22:46:52 tom Exp $
+.TH curs_outopts 3X 2025-03-22 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
.ie \n(.g \{\
.ds `` \(lq
.ds '' \(rq
@@ -118,6 +118,9 @@ possessing them according to the
.I \%term\%info
database.
.\" TODO: What's the historical rationale for the `idcok()` feature?
+.\" TED: Solaris SVr4 source uses this to bypass some logic which may not work
+.\" with terminals that use "magic cookies" (cells where the video attribute
+.\" changes and no actual character is stored).
.SS idlok
Setting
.IR win 's
diff --git a/man/user_caps.5 b/man/user_caps.5
index cf5fa858..3f3e721c 100644
--- a/man/user_caps.5
+++ b/man/user_caps.5
@@ -28,8 +28,8 @@
.\" authorization. *
.\"***************************************************************************
.\"
-.\" $Id: user_caps.5,v 1.51 2024/06/08 21:01:53 tom Exp $
-.TH user_caps 5 2024-06-08 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "File formats"
+.\" $Id: user_caps.5,v 1.53 2025/03/22 22:27:44 tom Exp $
+.TH user_caps 5 2025-03-22 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "File formats"
.ie \n(.g \{\
.ds `` \(lq
.ds '' \(rq
@@ -64,6 +64,18 @@ and standardized in X/Open Curses starting in 1995.
.\" the standard, so lacks a "HISTORY" section. However, `tigetstr()`
.\" and `tputs()` are identified in the same document as new to Issue 4,
.\" so GBR conjectures that the list came in at the same time.
+.\"
+.\" TED: the list is reflected in term.h, seen in examples from AIX 3 and 4,
+.\" HP-UX 9, OSF/1, Solaris 2.4, dating from 1992-1994 -- all before 1996.
+.\" The AIX 4 file has copyright dates starting in 1984;
+.\" the Solaris file cites 1988 (the others have no copyright comments).
+.\" Those term.h files note in a comment that it is generated by a script with
+.\" a data file, i.e.,
+.\" term.h - this file is automatically made from caps and maketerm.ex.
+.\" illumos-gate has related source, with a "caps" file having AT&T copyright
+.\" for 1988, and UCB copyright for 1982, 1986, 1988. That 1982 is interesting
+.\" (hinting that something may have been in the initial releated of System V)
+.\" but the first release with tic appears to be SVr2 in 1984.
.PP
Most of the \fIextensions\fP in this fixed repertoire were additions
to the tables of Boolean, numeric and string capabilities.
diff --git a/ncurses/base/lib_mouse.c b/ncurses/base/lib_mouse.c
index a995b425..aa512231 100644
--- a/ncurses/base/lib_mouse.c
+++ b/ncurses/base/lib_mouse.c
@@ -85,7 +85,7 @@
#define CUR SP_TERMTYPE
#endif
-MODULE_ID("$Id: lib_mouse.c,v 1.208 2025/02/15 15:12:21 tom Exp $")
+MODULE_ID("$Id: lib_mouse.c,v 1.209 2025/03/22 23:14:11 Daniel.Starke Exp $")
#include
@@ -761,7 +761,8 @@ initialize_mousetype(SCREEN *sp)
/* we know how to recognize mouse events under "xterm" */
if (NonEmpty(key_mouse)) {
init_xterm_mouse(sp);
- } else if (strstr(SP_TERMTYPE term_names, "xterm") != NULL) {
+ } else if (SP_TERMTYPE term_names != NULL
+ && strstr(SP_TERMTYPE term_names, "xterm") != NULL) {
if (_nc_add_to_try(&(sp->_keytry), xterm_kmous, KEY_MOUSE) == OK)
init_xterm_mouse(sp);
}
diff --git a/package/debian-mingw/changelog b/package/debian-mingw/changelog
index a37d7b49..5b220987 100644
--- a/package/debian-mingw/changelog
+++ b/package/debian-mingw/changelog
@@ -1,8 +1,8 @@
-ncurses6td (6.5+20250315) unstable; urgency=low
+ncurses6td (6.5+20250322) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey Sat, 15 Mar 2025 07:18:45 -0400
+ -- Thomas E. Dickey Sat, 22 Mar 2025 06:41:37 -0400
ncurses6 (5.9+20131005) unstable; urgency=low
diff --git a/package/debian-mingw64/changelog b/package/debian-mingw64/changelog
index a37d7b49..5b220987 100644
--- a/package/debian-mingw64/changelog
+++ b/package/debian-mingw64/changelog
@@ -1,8 +1,8 @@
-ncurses6td (6.5+20250315) unstable; urgency=low
+ncurses6td (6.5+20250322) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey Sat, 15 Mar 2025 07:18:45 -0400
+ -- Thomas E. Dickey Sat, 22 Mar 2025 06:41:37 -0400
ncurses6 (5.9+20131005) unstable; urgency=low
diff --git a/package/debian/changelog b/package/debian/changelog
index 96034e3b..0a493be1 100644
--- a/package/debian/changelog
+++ b/package/debian/changelog
@@ -1,8 +1,8 @@
-ncurses6td (6.5+20250315) unstable; urgency=low
+ncurses6td (6.5+20250322) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey Sat, 15 Mar 2025 07:18:45 -0400
+ -- Thomas E. Dickey Sat, 22 Mar 2025 06:41:37 -0400
ncurses6 (5.9+20120608) unstable; urgency=low
diff --git a/package/mingw-ncurses.nsi b/package/mingw-ncurses.nsi
index 162b58bb..b199e08a 100644
--- a/package/mingw-ncurses.nsi
+++ b/package/mingw-ncurses.nsi
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.694 2025/03/15 11:18:45 tom Exp $
+; $Id: mingw-ncurses.nsi,v 1.695 2025/03/22 10:41:37 tom Exp $
; TODO add examples
; TODO bump ABI to 6
@@ -10,7 +10,7 @@
!define VERSION_MAJOR "6"
!define VERSION_MINOR "5"
!define VERSION_YYYY "2025"
-!define VERSION_MMDD "0315"
+!define VERSION_MMDD "0322"
!define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}
!define MY_ABI "5"
diff --git a/package/mingw-ncurses.spec b/package/mingw-ncurses.spec
index 61eb2b69..14e11669 100644
--- a/package/mingw-ncurses.spec
+++ b/package/mingw-ncurses.spec
@@ -3,7 +3,7 @@
Summary: shared libraries for terminal handling
Name: mingw32-ncurses6
Version: 6.5
-Release: 20250315
+Release: 20250322
License: X11
Group: Development/Libraries
URL: https://invisible-island.net/ncurses/
diff --git a/package/ncurses.spec b/package/ncurses.spec
index f75f103b..54534c97 100644
--- a/package/ncurses.spec
+++ b/package/ncurses.spec
@@ -1,7 +1,7 @@
Summary: shared libraries for terminal handling
Name: ncurses6
Version: 6.5
-Release: 20250315
+Release: 20250322
License: X11
Group: Development/Libraries
URL: https://invisible-island.net/ncurses/
diff --git a/package/ncursest.spec b/package/ncursest.spec
index c4722794..9dd689b0 100644
--- a/package/ncursest.spec
+++ b/package/ncursest.spec
@@ -1,7 +1,7 @@
Summary: Curses library with POSIX thread support.
Name: ncursest6
Version: 6.5
-Release: 20250315
+Release: 20250322
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz