diff options
author | jmg <jmg@FreeBSD.org> | 1997-04-02 10:27:27 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 1997-04-02 10:27:27 +0000 |
commit | bd50d43308fa112e884a8372ec4e691acc984415 (patch) | |
tree | 774314a899de01b7d596b0d9ef9007737a0d282f /usr.bin | |
parent | cbecc84afb7a69e57be9e1b1c24c15fa49556fc7 (diff) | |
download | FreeBSD-src-bd50d43308fa112e884a8372ec4e691acc984415.zip FreeBSD-src-bd50d43308fa112e884a8372ec4e691acc984415.tar.gz |
add comment about the brokeness of some termcap entires that require a
`%' to be just that...
make tput just warn about an unknown type modifier instead of breaking...
this allows you to `tput init' on a tek4107...
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tput/tput.1 | 8 | ||||
-rw-r--r-- | usr.bin/tput/tput.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/tput/tput.1 b/usr.bin/tput/tput.1 index 9a348431..3baa4ce 100644 --- a/usr.bin/tput/tput.1 +++ b/usr.bin/tput/tput.1 @@ -110,6 +110,14 @@ exits 2 if any error occurred. .Sh BUGS .Nm Tput can't really distinguish between different types of attributes. +.Pp +Some termcap entries depend upon having a +.Sq % +in them that is just a +.Sq % +and nothing more. Right now we just warn about them if they don't +have a valid type declaration. These warnings are sent to +stderr. .Sh HISTORY The .Nm diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c index c1afb31..2eb3e46 100644 --- a/usr.bin/tput/tput.c +++ b/usr.bin/tput/tput.c @@ -165,7 +165,7 @@ process(cap, str, argv) /* * hpux has lot's of them, but we complain */ - errx(2, erresc, *cp, cap); + warnx(erresc, *cp, cap); } /* And print them. */ |