bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 05/15] man/curs_add{,w}str.3x: Tighten description.


From: G. Branden Robinson
Subject: [PATCH 05/15] man/curs_add{,w}str.3x: Tighten description.
Date: Sat, 20 Jul 2024 11:19:27 -0500

* If wadd{,w}str() works like repeated wadd{,_wch}() calls, we don't
  need to recapitulate the latter's handling of control characters.
* waddn{,w}str() is not distinct from wadd{,w}str() in respecting a
  terminating null character (if it encounters one).
---
 man/curs_addstr.3x  | 12 +++++-------
 man/curs_addwstr.3x | 18 +++++++-----------
 2 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/man/curs_addstr.3x b/man/curs_addstr.3x
index 5668390af..1ecd69ec7 100644
--- a/man/curs_addstr.3x
+++ b/man/curs_addstr.3x
@@ -73,19 +73,17 @@ .SH DESCRIPTION
 writes the characters of the (null-terminated) string
 .I str
 to the window
-.IR win .
-Its process is similar to calling \fB\%waddch\fP(3X) for each
+.IR win ,
+as if by calling \fB\%waddch\fP(3X) for each
 .I char
 in
 .IR str .
-Control characters are processed as in \fB\%waddch\fP(3X).
 .PP
 .B waddnstr
-writes at most
+is similar,
+but writes at most
 .I n
-characters,
-or until a terminating null character occurs in
-.IR str .
+characters.
 If
 .I n
 is \-1,
diff --git a/man/curs_addwstr.3x b/man/curs_addwstr.3x
index 7c5c62cfc..a7f54863a 100644
--- a/man/curs_addwstr.3x
+++ b/man/curs_addwstr.3x
@@ -74,8 +74,9 @@ .SH DESCRIPTION
 string
 .I wstr
 to the window
-.IR win .
-Its process is similar to constructing a
+.IR win ,
+as if by
+constructing a
 .I cchar_t
 for each
 .I wchar_t
@@ -83,19 +84,14 @@ .SH DESCRIPTION
 .IR wstr ,
 then calling \fB\%wadd_wch\fP(3X) with the resulting
 .IR cchar_t .
-.bP
 Spacing and non-spacing characters in the string
-are processed one at a time,
-and
-.bP
-control characters are processed as in \fB\%wadd_wch\fP(3X).
+are processed one at a time.
 .PP
 .B waddnwstr
-writes at most
+is similar,
+but writes at most
 .I n
-wide characters,
-or until a terminating wide null character occurs in
-.IR wstr .
+wide characters.
 If
 .I n
 is \-1,
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]