12 lines
203 B
Plaintext
Raw Normal View History

2013-03-05 02:47:04 -06:00
#!/bin/bash
node test/tput.js "$@" | tee out
2013-03-06 04:10:13 -06:00
out=$(git diff --color=always --no-index test/terminfo out)
2013-03-05 02:47:04 -06:00
rm out
2013-03-06 04:10:13 -06:00
if test -n "$out"; then
echo "$out" | less -c -R
else
echo 'Files are identical.'
fi