--- uxterm.orig	2015-01-28 16:16:47.845284223 +0100
+++ uxterm	2015-01-28 16:16:38.165430967 +0100
@@ -111,5 +111,6 @@
 
 # for testing:
 #test -f ./xterm && XTERM_PROGRAM=./xterm
+COLOR=`hashcolor "$@"`
 
-exec $XTERM_PROGRAM -class UXTerm -title $whoami -u8 "$@"
+exec $XTERM_PROGRAM -class UXTerm -title $whoami -u8 $COLOR "$@"

--- uxterm.orig	2015-01-29 13:02:19.171709191 +0100
+++ uxterm	2015-01-29 13:01:42.371968810 +0100
@@ -111,5 +111,8 @@
 
 # for testing:
 #test -f ./xterm && XTERM_PROGRAM=./xterm
+if [ $# -gt 0 ]; then
+	COLOR=`hashcolor "$@"`
+fi
 
-exec $XTERM_PROGRAM -class UXTerm -title $whoami -u8 "$@"
+exec $XTERM_PROGRAM -class UXTerm -title $whoami -u8 $COLOR "$@"

Change color only if xterm is called with args
Change color only if xterm is called with args
