[ESS] R in telnet session in emacs: too much ee eecc eecchh ...

Woodrow Setzer wsetzer at mindspring.com
Mon Apr 11 20:23:55 CEST 2005


I could not get anything to work with telnet, but with rlogin (my preference, anyway), stty -echo echonl works.  Without echonl, a command's output would overwrite the command.  I could not get the function "rmh-comint-toggle-echo" to work at all.  It seemed to just drop newlines.

-----Original Message-----
From: "Richard M. Heiberger" <rmh at temple.edu>
Sent: Apr 11, 2005 1:44 PM
To: Woodrow Setzer <wsetzer at mindspring.com>, ess-help at stat.math.ethz.ch
Subject: Re: [ESS] R in telnet session in emacs: too much ee eecc eecchh ...

It is most likely that you need something like
  stty -echo
on the remote side before starting R.
There are a few other stty parameters that might also be relevant.


But it might be something on the local side.
I use the following function

(defun rmh-comint-toggle-echo (&optional arg)
  "Toggle comint-process-echoes.
With arg, turn comint-process-echoes on if arg is positive, off otherwise."
  (interactive "P")
  (setq comint-process-echoes
	(if (null arg) (not comint-process-echoes)
	  (> (prefix-numeric-value arg) 0))))
(define-key comint-mode-map "\C-c\C-k" 'rmh-comint-toggle-echo)

And then I do C-c C-k when the type of echoing you describe happens.


Please report back to this list when you figure out which of these
potential solutions is the one that works.

Rich




More information about the ESS-help mailing list