xref: /freebsd/share/termcap/tck (revision a0409676120c1e558d0ade943019934e0f15118d)
1#!/bin/sh -
2#
3# Copyright (c) 1991, 1993
4#	The Regents of the University of California.  All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10#    notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright
12#    notice, this list of conditions and the following disclaimer in the
13#    documentation and/or other materials provided with the distribution.
14# 3. All advertising materials mentioning features or use of this software
15#    must display the following acknowledgement:
16#	This product includes software developed by the University of
17#	California, Berkeley and its contributors.
18# 4. Neither the name of the University nor the names of its contributors
19#    may be used to endorse or promote products derived from this software
20#    without specific prior written permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32# SUCH DAMAGE.
33#
34#	@(#)tck	8.1 (Berkeley) 6/8/93
35#
36
37# Look for default (and termcap-only?) capabilities.
38# Defaults should be removed to save space.
39
40showtc $* | \
41sed	-n				\
42	-e 's/ bc=^H$/DEFAULT &/p'	\
43	-e 's/ bc=\\h$/DEFAULT &/p'	\
44	-e 's/ bc=\\10$/DEFAULT &/p'	\
45	-e 's/ bc=\\010$/DEFAULT &/p'	\
46	-e 's/ bl=^G$/DEFAULT &/p'	\
47	-e 's/ bl=\\7$/DEFAULT &/p'	\
48	-e 's/ bl=\\07$/DEFAULT &/p'	\
49	-e 's/ bl=\\007$/DEFAULT &/p'	\
50	-e 's/ cr=^M$/DEFAULT &/p'	\
51	-e 's/ cr=\\r$/DEFAULT &/p'	\
52	-e 's/ cr=\\15$/DEFAULT &/p'	\
53	-e 's/ cr=\\015$/DEFAULT &/p'	\
54	-e 's/ ff=^L$/DEFAULT &/p'	\
55	-e 's/ ff=^L$/DEFAULT &/p'	\
56	-e 's/ ff=\\14$/DEFAULT &/p'	\
57	-e 's/ ff=\\014$/DEFAULT &/p'	\
58	-e 's/ nl=^J$/DEFAULT &/p'	\
59	-e 's/ nl=\\n$/DEFAULT &/p'	\
60	-e 's/ nl=\\12$/DEFAULT &/p'	\
61	-e 's/ nl=\\012$/DEFAULT &/p'	\
62	-e 's/ ta=^I$/DEFAULT &/p'	\
63	-e 's/ ta=\\t$/DEFAULT &/p'	\
64	-e 's/ ta=\\11$/DEFAULT &/p'	\
65	-e 's/ ta=\\011$/DEFAULT &/p'	\
66					\
67	-e 's/ bc$/TERMCAP ONLY &/p'	\
68	-e 's/ bs$/TERMCAP ONLY &/p'	\
69	-e 's/ dB$/TERMCAP ONLY &/p'	\
70	-e 's/ dC$/TERMCAP ONLY &/p'	\
71	-e 's/ dF$/TERMCAP ONLY &/p'	\
72	-e 's/ dN$/TERMCAP ONLY &/p'	\
73	-e 's/ dT$/TERMCAP ONLY &/p'	\
74	-e 's/ dV$/TERMCAP ONLY &/p'	\
75	-e 's/ EP$/TERMCAP ONLY &/p'	\
76	-e 's/ HD$/TERMCAP ONLY &/p'	\
77	-e 's/ kn$/TERMCAP ONLY &/p'	\
78	-e 's/ ko$/TERMCAP ONLY &/p'	\
79	-e 's/ LC$/TERMCAP ONLY &/p'	\
80	-e 's/ ma$/TERMCAP ONLY &/p'	\
81	-e 's/ ml$/TERMCAP ONLY &/p'	\
82	-e 's/ mu$/TERMCAP ONLY &/p'	\
83	-e 's/ nc$/TERMCAP ONLY &/p'	\
84	-e 's/ NL$/TERMCAP ONLY &/p'	\
85	-e 's/ nl$/TERMCAP ONLY &/p'	\
86	-e 's/ ns$/TERMCAP ONLY &/p'	\
87	-e 's/ OP$/TERMCAP ONLY &/p'	\
88	-e 's/ pt$/TERMCAP ONLY &/p'	\
89	-e 's/ UC$/TERMCAP ONLY &/p'	\
90	-e 's/ xr$/TERMCAP ONLY &/p'	\
91	-e 's/ xx$/TERMCAP ONLY &/p'	\
92