#!/bin/sh
# xterm - Wrapper for standard "xterm" program
# License:  BSD-style (for this file only)
# Revision: 110807

N=`getx11dim | sed "s|x.*||"`
FTSIZE=15
FTNAME=LuxiMono
GEOMETRY="80x25"

if [ $N -gt 1024 ]; then
    FTSIZE=19
fi

if [ $N -gt 1400 ]; then
    FTSIZE=21
fi

# This needs more work. Presently, this wrapper doesn't support multi-
# word title strings.

ARGS="-fa $FTNAME -fs $FTSIZE -geometry $GEOMETRY -rv +sb"

if [ x"$1" == x-T ]; then
    /usr/X11R6/bin/xterm.orig          $ARGS $*
else
    /usr/X11R6/bin/xterm.orig -T xterm $ARGS $*
fi

# Note: Possible font choices include:
#
#     DejaVuSansMono
#     LiberationMono    - Best for XTerm purposes
#     LuxiMono          - Good for XTerm purposes, but bright
#     VeraMono
