neo-blessed/test/tput

12 lines
203 B
Plaintext
Raw Normal View History

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