Date: Thu, 02 Jan 2003 21:43:08 -0700 (MST) From: Kazuo Horikawa <horikawa@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/46709: tables in terminfo.5 are broken Message-ID: <20030102.214308.74754748.horikawa@attbi.com>
index | next in thread | raw e-mail
>Number: 46709
>Category: docs
>Synopsis: tables in terminfo.5 are broken
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 02 20:50:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Kazuo Horikawa
>Release: 5.0-RC2
>Organization:
personal user
>Environment:
terminfo.5 contained in 5.0 current and 5.0-RC2
>Description:
Formatted terminfo.5 page shows corrupt tables like:
Variable Cap- TCap Description
Booleans name Code
auto_left_margin bw bw
T}
auto_right_margin am am
T}
src/contrib/ncurses/man/MKterminfo.sh produced the corrupt
tables. (Is this due to difference between GNU sed and
FreeBSD sed?)
terminfo.5 is a part of src/contrib/ncurses.
>How-To-Repeat:
man 5 terminfo
>Fix:
src/contrib/ncurses/MKterminfo.sh with following change
produces correct tables in resulting roff file.
--- MKterminfo.sh.bak Thu Jan 2 20:22:55 2003
+++ MKterminfo.sh Thu Jan 2 21:21:06 2003
@@ -64,13 +64,13 @@
unsorted=unsorted$$
trap "rm -f $sorted $temp $unsorted; exit 99" 1 2 5 15
-sed -n <$caps "\
+sed -E -n <$caps "\
/%%-STOP-HERE-%%/q
/^#%/s///p
/^#/d
-s/[ ]\+/ /g
+s/[ ]+/ /g
s/$/T}/
-s/ [A-Z0-9_()\-]\+ [0-9\-]\+ [Y\-][B\-][C\-][G\-][EK\-]\** / T{/
+s/ [A-Z0-9_()\-]+ [0-9\-]+ [Y\-][B\-][C\-][G\-][EK\-]\** / T{/
s/ bool / /p
s/ num / /p
s/ str / /p
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102.214308.74754748.horikawa>
