bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 05/34] man/terminfo.{head,tail}: Define and use "'" string.


From: G. Branden Robinson
Subject: [PATCH 05/34] man/terminfo.{head,tail}: Define and use "'" string.
Date: Fri, 6 Oct 2023 00:13:17 -0500

The `\(aq` special character escape sequence is not perfectly portable;
AT&T nroff can't be expected to know what to do with it.  Abstract the
neutral single quote character through this new string.
---
 man/terminfo.head | 2 ++
 man/terminfo.tail | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/man/terminfo.head b/man/terminfo.head
index 78e18c5c..6c7682bf 100644
--- a/man/terminfo.head
+++ b/man/terminfo.head
@@ -39,6 +39,8 @@
 .el       .ds `` ``
 .ie \n(.g .ds '' \(rq
 .el       .ds '' ''
+.ie \n(.g .ds ' \(aq
+.el       .ds ' '
 .ie \n(.g .ds ^ \(ha
 .el       .ds ^ ^
 .ie \n(.g .ds ~ \(ti
diff --git a/man/terminfo.tail b/man/terminfo.tail
index 66cfbe74..be1d4285 100644
--- a/man/terminfo.tail
+++ b/man/terminfo.tail
@@ -554,7 +554,7 @@ Use static variables if persistent storage is needed.
 .RE
 .RE
 .TP
-\fB%\(aq\fIc\fB\(aq\fR
+\fB%\*'\fIc\fB\*'\fR
 char constant \fIc\fP
 .TP
 \fB%{\fInn\fB}\fR
@@ -633,7 +633,7 @@ This turns out to be essential for the Ann Arbor 4080.)
 A final example is the \s-1LSI ADM\s0-3a, which uses row and column
 offset by a blank character, thus
 .RS
-cup=\eE=%p1%\(aq \(aq%+%c%p2%\(aq \(aq%+%c
+cup=\eE=%p1%\*' \*'%+%c%p2%\*' \*'%+%c
 .RE
 .PP
 After sending \*(``\eE=\*('', this pushes the first parameter, pushes the
@@ -1809,7 +1809,7 @@ this can be indicated with the parameterized string
 .BR rep .
 The first parameter is the character to be repeated and the second
 is the number of times to repeat it.
-Thus, tparm(repeat_char, \(aqx\(aq, 10) is the same as \*(``xxxxxxxxxx\*(''.
+Thus, tparm(repeat_char, \*'x\*', 10) is the same as \*(``xxxxxxxxxx\*(''.
 .PP
 If the terminal has a settable command character,
 such as the \s-1TEKTRONIX\s+1 4025,
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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