The following is how I use qterm in my etc/profile: TERM=`qterm` export TERM eval `tset -sQ -m ":?$TERM"` if [ "$TERM" = "" -o "$TERM" = "unknown" -o \ "`echo $TERM | cut -b1-3`" = "con" ]; then TERM=console fi