# Exit on error:
set -e

wget ftp://invisible-island.net/xterm/xterm-297.tgz
tar xf xterm-297.tgz
cd xterm-297

./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --enable-luit \
    --enable-wide-chars

make
make install

cd ..

echo Now you may want to add the following line to your ~/.Xdefaults
echo to have white fonts on a black background:
echo XTerm*foreground:       white
echo XTerm*background:       black
echo
echo ! Colors for man pages
echo ! Forbid bold font faces; bold type is white.
echo XTerm*colorBDMode:     true
echo XTerm*colorBD:          white
echo ! Do not underscore text, underlined text is cyan.
echo XTerm*colorULMode:      true
echo XTerm*colorUL:          cyan

exit 0
