[ESS] double prompt while connecting to a remote session via ssa on Windows
Keith Ponting
k.ponting at aurix.com
Mon Aug 15 11:20:54 CEST 2011
Hello Jannis,
I did not find a clean solution for this, but ended up inserting the
following hack in ~/.bashrc on the remote machine. (I use bash)
# following is for use within Emacs ssh
if [ "$XAUTHLOCALHOSTNAME" != "" ]; then
PS1='\u@\h:\w> '
stty igncr -echo
fi
In order to see R plots from the remote machine, I run xming on my PC
(http://www.straightrunning.com/XmingNotes/index.php) and have enabled
X11 forwarding in the PuTTy defaults and customised ssh-explicit-args to
"-X".
The test checks for the environment variable XAUTHLOCALHOSTNAME, which
is set for my emacs ssh session because I have enabled X11 forwarding.
However PuTTy sessions outside Emacs with X11 forwarding enabled also
set the same environment variable, hence obey the stty. This results in
a read-only terminal window! Therefore I have to have separate PuTTy
settings for non-emacs PuTTy sessions.
Keith Ponting
Aurix Ltd, Malvern WR14 3SZ UK
> -----Original Message-----
> Date: Fri, 12 Aug 2011 14:49:39 +0100 (BST)
> From: Jannis <bt_jannis at yahoo.de>
> To: ess-help at r-project.org
> Subject: [ESS] double prompt while connecting to a remote session via
> ssa on Windows
> Message-ID:
> <1313156979.17831.YahooMailClassic at web28202.mail.ukl.yahoo.com>
> Content-Type: text/plain; charset=utf-8
>
> Dear Emnacs users,
>
>
> when i connect to a remote R process via ssh I always have a double
> prompt, i.e. emacs behaves as whether I would hit return always twice.
>
> Some googleing pointed me here:
>
> http://old.nabble.com/Double-prompt-using-ess-remote-through-ssh-on-
> Windows-td16411271.html
>
> So, when I insert the following after starting the ssh process into
the
> prompt, my problem seems to be solved:
>
> stty igncr -echo
>
>
> Is there any way to set up ssh or plink to use this setting
> automatically? I use ssh.el and plink to build the ssh connection.
>
>
> Cheers
> Jannis
>
>
> These are the ssh related settings in .emacs:
> (load "<path to library>/ssh.el")
> (setq ssh-program "plink")
>
>
> ssh.el has not really been changed despite inserting the host and
> username.
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> ESS-help mailing list DIGESTED
> ESS-help at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
> End of ESS-help Digest, Vol 102, Issue 6
> ****************************************
More information about the ESS-help
mailing list