#!/bin/sh

if [ "$0" = "see" ] 
then
  SoloLect=-r
  NoTab=-t
else
  unset SoloLect
  unset NoTab
fi
if [ "$1" = "" ] 
then
  exec screun 
fi
for i in $*
do
  case $i in
    "-h" | "-i" |  "-a") exec screun  $SoloLect $NoTab $* ;;
    *)  case $TERM in
          *hp* | 300h | A1991AC19)   exec screun  -h $SoloLect $NoTab "$1" $2 ;;
          *vt* )          exec screun  -a $SoloLect $NoTab "$1" $2 ;;
          xterm )         exec screun  -x $SoloLect $NoTab "$1" $2 ;;
          aixterm)        exec screun  -i $SoloLect $NoTab "$1" $2 ;;
          *) 
            echo "Sorry, sce don't knows how to handle '$TERM' terminals."
            ;;
          esac    
       ;;
    esac
done
 

