bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 10/34] Define and use `^` string to obtain U+005E.


From: G. Branden Robinson
Subject: [PATCH 10/34] Define and use `^` string to obtain U+005E.
Date: Fri, 6 Oct 2023 00:14:41 -0500

For correct rendering and copy-and-paste from PDF or UTF-8 terminals.

* man/term.5:
* man/tset.1: Do it.
---
 man/term.5 | 10 ++++++----
 man/tset.1 |  4 +++-
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/man/term.5 b/man/term.5
index 20192724..e589d5ec 100644
--- a/man/term.5
+++ b/man/term.5
@@ -33,6 +33,8 @@
 .el       .ds `` ``
 .ie \n(.g .ds '' \(rq
 .el       .ds '' ''
+.ie \n(.g .ds ^  \(ha
+.el       .ds ^  ^
 .ie n .ds CW R
 .el   \{
 .ie \n(.g .ds CW CR
@@ -211,7 +213,7 @@ .SS LEGACY STORAGE FORMAT
 It contains all of the values of string capabilities referenced in
 the \fIstrings\fP section.
 Each string is null-terminated.
-Special characters in ^X or \ec notation are stored in their
+Special characters in \*^X or \ec notation are stored in their
 interpreted form, not the printing representation.
 Padding information $<nn> and parameter information %x are
 stored intact in uninterpreted form.
@@ -353,9 +355,9 @@ .SH EXAMPLE
 adm3a|lsi adm3a,
         am,
         cols#80, lines#24,
-        bel=^G, clear=\032$<1>, cr=^M, cub1=^H, cud1=^J,
-        cuf1=^L, cup=\\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
-        home=^^, ind=^J,
+        bel=\*^G, clear=\032$<1>, cr=\*^M, cub1=\*^H, cud1=\*^J,
+        cuf1=\*^L, cup=\\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\*^K,
+        home=\*^\*^, ind=\*^J,
 .NE
 .PP
 and a hexadecimal dump of the compiled terminal description:
diff --git a/man/tset.1 b/man/tset.1
index e4b5eec1..ece4353e 100644
--- a/man/tset.1
+++ b/man/tset.1
@@ -33,6 +33,8 @@
 .el       .ds `` ``
 .ie \n(.g .ds '' \(rq
 .el       .ds '' ''
+.ie \n(.g .ds ^ \(ha
+.el       .ds ^ ^
 .de bP
 .ie n  .IP \(bu 4
 .el    .IP \(bu 2
@@ -200,7 +202,7 @@ .SH OPTIONS
 The arguments for the \fB\-e\fP, \fB\-i\fP, and \fB\-k\fP
 options may either be entered as actual characters
 or by using the \*(``hat\*(''
-notation, i.e., control-h may be specified as \*(``^H\*('' or \*(``^h\*(''.
+notation, i.e., control-h may be specified as \*(``\*^H\*('' or \*(``\*^h\*(''.
 .PP
 If neither \fB\-c\fP or \fB\-w\fP is given, both options are assumed.
 .
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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