[ESS] Double prompt using ess-remote through ssh on Windows

Keith Ponting k.ponting at aurix.com
Tue Apr 19 10:41:00 CEST 2011

> -----Original Message-----
> From: Erik Iverson [mailto:eriki at ccbr.umn.edu]
> Sent: 18 April 2011 20:08
> To: Keith Ponting
> Cc: ess-help at stat.math.ethz.ch
> Subject: Re: [ESS] Double prompt using ess-remote through ssh on
> Hello -
> I am just coming into this thread, and I only really saw the keyword
> "double prompt".  I seem to recall I had some success of fixing this
> issuing an stty command of some type upon logging into the Linux
> machine.
> Something like
> % stty -nl
> rings a bell?
> The ESS manual has:
> % stty -echo nl
> You might try variations of the above to see if it helps you avoid the
> double prompt without any emacs hacking.

Hello Erik,

That is very helpful:
   % stty igncr -echo
in the ssh window before starting R does the job for me. Much easier
than hacking Emacs Lisp!

For the complete story, in my Emacs ssh window, I have:

% stty igncr -echo
stty igncr -echo
% %

But that last doubled prompt is the final oddity - after that everything
works as desired. For reference, the complete set of stty settings
_before_ the above change was:

% stty -a
stty -a
speed 38400 baud; rows 50; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
echoctl echoke


Keith Ponting
Aurix Ltd, Malvern WR14 3SZ  UK

More information about the ESS-help mailing list