neo-blessed/test/tput

21 lines
396 B
Plaintext
Raw Normal View History

2013-03-05 08:47:04 +00:00
#!/bin/bash
2013-07-28 19:29:07 +00:00
term="$1"
dir=$(dirname $(readlink -f "$0"))
cd "$dir/.."
if test -z "$term"; then
term="$dir/../usr/xterm"
set -- "$term" "$@"
fi
node test/tput.js "$@" | grep -v 'dir:\|file:' | tee test/logs/terminfo.log
out=$(git diff --color=always --no-index test/terminfo test/logs/terminfo.log)
2013-03-06 10:10:13 +00:00
if test -n "$out"; then
echo "$out" | less -c -R
else
echo 'Files are identical.'
fi