#!/bin/sh
# uses the -e switch on tic to selectively load descriptions that are
# interesting for my testing.
if test -f terminfo.src ; then
	TMP=/tmp/load$$
	trap "rm -f $TMP" 0 1 2 5 15
	tic -x -s -1 -I -e'
ansi,
ansi-m,
beterm,
color_xterm,
dtterm,
ecma+color,
klone+acs,
klone+color,
klone+sgr,
klone+sgr-dumb,
kterm,
linux,
linux-c,
linux-c-nc,
nxterm,
pcansi-m,
rxvt,
rxvt-basic,
screen, 
tek4012, 
tek4014,
vt52,
vt100,
vt102,
vt220,
xterm-xf86-v32,
xterm-xf86-v33,
xterm-xf86-v333,
xterm-xf86-v40,
xterm-basic,
xterm-bold,
xterm-8bit,
xterm-16color,
xterm-24,
xterm-r5,
xterm-r6,
xterm-rep,
xterm-x11r6,
xterm-xfree86' terminfo.src |egrep -v '^	mem[ul]=.E.,' >$TMP
cat >>$TMP <<EOF
rxvt-color|quasi-xterm terminal emulator, 
	use=rxvt, 
xterm|xterm terminal emulator (X Window System), 
	use=xterm-xf86-v40, 
xterm-rep|xterm with repeat-character control,
	rep=%p1%c\E[%p2%{1}%-%db,
	use=xterm,
EOF
	run-out root tic -x -s $TMP
else
	echo 'oops'
	exit 1
fi