Launch terminal with the correct background colour using the -bg option.
Force a black internal border for urxvt so that different coloured
terminals don't look weird with Vim marks and numbers.
!rxvt.inheritPixmap: True
urxvt.foreground: white
urxvt.background: black
+urxvt.borderColor: black
urxvt.scrollBar_right: True
urxvt.font: xft:DejaVu Sans Mono:pixelsize=12:aspect=0.9
urxvt.multichar_encoding: noenc
if [ ! -z "$colour" ]; then
colour=${colour##*/}
colour=${colour##*:}
- echo -e "\033]49;$colour\007"
- clear
fi
-exec ${SSHTERM_SSH:-ssh} ${1+"$@"}
+[ -n "$colour" ] && colour="-bg $colour"
+exec ${SSHTERM:-xterm} ${SSHTERM_TITLE:--title} "$1" \
+ $colour ${SSHTERM_EXEC:--e} ${SSHTERM_SSH:-ssh} ${1+"$@"}
if [ "$SSHTERM" = "urxvtc" ]; then
setlock -nx ${RXVT_SOCKET:-$HOME/rxvt-unicode-$HOSTNAME}.lock urxvtd -q -o -f &
fi
-${SSHTERM:-xterm} ${SSHTERM_TITLE:--title} "$1" ${SSHTERM_EXEC:--e} \
sshcolourterm ${1+"$@"} &
disown