From 130cf391b60b93f187152cc10f389106caf1cbeb Mon Sep 17 00:00:00 2001 From: runge Date: Thu, 14 Sep 2006 02:20:57 +0000 Subject: x11vnc: enhanced_tightvnc_viewer files, ssh -t keystroke response improvement. --- classes/ssl/ssl_vncviewer | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'classes') diff --git a/classes/ssl/ssl_vncviewer b/classes/ssl/ssl_vncviewer index 1052cf2..1d7d1a7 100755 --- a/classes/ssl/ssl_vncviewer +++ b/classes/ssl/ssl_vncviewer @@ -256,19 +256,25 @@ if [ "X$use_ssh" = "X1" ]; then else info="$ssh_cmd" fi + + C="" + if [ "X$SSL_VNCVIEWER_USE_C" != "X" ]; then + C="-C" + fi + # the -t option actually speeds up typing response via VNC!! if [ "X$SSL_VNCVIEWER_SSH_ONLY" != "X" ]; then - echo "$ssh -p $ssh_port -t -C $ssh_args $ssh_host \"$info\"" + echo "$ssh -p $ssh_port -t $C $ssh_args $ssh_host \"$info\"" echo "" - $ssh -p $ssh_port -t -C $ssh_args $ssh_host "$ssh_cmd" + $ssh -p $ssh_port -t $C $ssh_args $ssh_host "$ssh_cmd" exit $? elif [ "X$SSL_VNCVIEWER_NO_F" != "X" ]; then - echo "$ssh -p $ssh_port -C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host \"$info\"" + echo "$ssh -p $ssh_port -t $C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host \"$info\"" echo "" - $ssh -p $ssh_port -C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host "$ssh_cmd" + $ssh -p $ssh_port -t $C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host "$ssh_cmd" else - echo "$ssh -f -p $ssh_port -C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host \"$info\"" + echo "$ssh -f -p $ssh_port -t $C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host \"$info\"" echo "" - $ssh -f -p $ssh_port -C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host "$ssh_cmd" + $ssh -f -p $ssh_port -t $C -L ${use}:${vnc_host}:${port} $ssh_args $ssh_host "$ssh_cmd" fi if [ "$?" != "0" ]; then echo "" @@ -283,6 +289,8 @@ if [ "X$use_ssh" = "X1" ]; then sleep 5 fi echo "" + #reset + stty sane if [ "X$use_sshssl" = "X" ]; then echo "Running viewer:" echo $VNCVIEWERCMD "$@" localhost:$N -- cgit v1.2.1