diff options
author | runge <runge> | 2006-09-14 02:20:57 +0000 |
---|---|---|
committer | runge <runge> | 2006-09-14 02:20:57 +0000 |
commit | 130cf391b60b93f187152cc10f389106caf1cbeb (patch) | |
tree | a6a4853e054137b0e37c2243d41947ee9c6c9640 /classes | |
parent | 94501cdcfaeecf09c42584589a4d419ce6ecf8aa (diff) | |
download | libtdevnc-130cf391b60b93f187152cc10f389106caf1cbeb.tar.gz libtdevnc-130cf391b60b93f187152cc10f389106caf1cbeb.zip |
x11vnc: enhanced_tightvnc_viewer files, ssh -t keystroke response improvement.
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/ssl/ssl_vncviewer | 20 |
1 files changed, 14 insertions, 6 deletions
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 |