new argument -n for not starting any terminal emulator

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5193 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-11-18 09:32:00 +00:00
parent 2fcba2d23b
commit 73b2f056c0

View File

@@ -11,6 +11,7 @@ do
-t) telnet_args="${telnet_args} $2 "; shift 2;;
-x) xterm_args="${xterm_args} $2 "; shift 2;;
-k) kx_args="${kx_args} -k"; shift;;
-n) term=none; shift;;
-w) term=$2; shift 2;;
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
*) break;;
@@ -49,7 +50,7 @@ if test -z "$term"; then
done
done
fi
if test -n "$term"; then
if test -n "$term" -a "$term" != "none"; then
($term -title $title -n $title $xterm_args -e env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host $port; kill -USR2 $pid) &
else
env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host $port