bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH] term(5): Fix excessively wide table.


From: G. Branden Robinson
Subject: [PATCH] term(5): Fix excessively wide table.
Date: Sun, 3 Sep 2023 12:43:53 -0500

The table formats to 84 columns on terminals.  Stop using page-local
`NS`/`NE` macros, which force an additional 4n of indentation that this
table cannot accommodate, in favor of portable man(7) macros, tbl(1)
usage, and one pair of `in` requests.

* On terminals, apply negative 2n indentation to fit the hex dump
  exhibit within 78 columns like the rest of the man page (on modern
  systems; older ones set man pages for a line length of 65n, upon which
  this exhibit has no hope, being 73n wide).  Retain 4n indentation on
  typesetters.

* Use table format specification to reduce type size by 1 point on
  typesetters (2 points was excessive) and use "CW" for the typeface.
  These are otherwise dubious things to attempt in man(7) source.  "CW"
  remains a non-portable font _name_; a forthcoming change will address
  that.
---
 man/term.5 | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/man/term.5 b/man/term.5
index 97070a18..629358d6 100644
--- a/man/term.5
+++ b/man/term.5
@@ -353,9 +353,12 @@ .SH EXAMPLE
 .NE
 .PP
 and a hexadecimal dump of the compiled terminal description:
-.NS
-.ft CW
-\s-20000  1a 01 10 00 02 00 03 00  82 00 31 00 61 64 6d 33  ........ ..1.adm3
+.PP
+.ie n .in -2n
+.el   .in +4n
+.TS
+lp-1f(CW).
+0000  1a 01 10 00 02 00 03 00  82 00 31 00 61 64 6d 33  ........ ..1.adm3
 0010  61 7c 6c 73 69 20 61 64  6d 33 61 00 00 01 50 00  a|lsi ad m3a...P.
 0020  ff ff 18 00 ff ff 00 00  02 00 ff ff ff ff 04 00  ........ ........
 0030  ff ff ff ff ff ff ff ff  0a 00 25 00 27 00 ff ff  ........ ..%.'...
@@ -376,10 +379,10 @@ .SH EXAMPLE
 0120  ff ff ff ff ff ff 2f 00  07 00 0d 00 1a 24 3c 31  ....../. .....$<1
 0130  3e 00 1b 3d 25 70 31 25  7b 33 32 7d 25 2b 25 63  >..=%p1% {32}%+%c
 0140  25 70 32 25 7b 33 32 7d  25 2b 25 63 00 0a 00 1e  %p2%{32} %+%c....
-0150  00 08 00 0c 00 0b 00 0a  00                       ........ .\s+2
-.ft R
-.NE
-.sp
+0150  00 08 00 0c 00 0b 00 0a  00                       ........ .
+.TE
+.in
+.PP
 .SH LIMITS
 Some limitations:
 .bP
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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