#!/bin/sh
options=""
col=""
case "$1" in
    apple.*|pineapple-*)
	col="#044024"
	;;
    grape.*)
	col="#052745"
	;;
    orange.*|lemon.*|orange|lemon)
	col="#d0e0f0"
	options="-fg black"
    *)
	;;
esac
if [ "x$col" == "x" ]; then :
else
    # KTerm uses foreground color for cursor when setting cursorColor to background color
    options="$options"' -xrm rkterm*VT100.background:'"$col"' -xrm rkterm*VT100.cursorColor:'"$col"
fi
kterm -name rkterm -T "$1" $options -e ssh "$@"&
