unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Gnu screen or tmux in emacs shell mode: how to fix color escape codes?
@ 2011-01-14 17:50 Leo Alekseyev
  2011-01-18 14:40 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Alekseyev @ 2011-01-14 17:50 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to attach screen (or tmux) inside emacs, in shell mode. I
often find myself running emacs with inferior processes inside screen
on remote servers; it would be nice if I could shift the workflow to
local emacs + TRAMP; ability to reattach persistent sessions is a
must, however. (Such workflow is particularly useful for analysis in
R, cf http://blog.nguyenvq.com/2010/07/11/using-r-ess-remote-with-screen-in-emacs/)

Shell-mode is rather desirable because I keep encountering
miscellaneous glitches and even crashes when using the combination of
M-x term or M-x ansi-term + screen + R. However, I can't seem to get
rid of ansi colored rendered as escape codes in screen when run under
M-x shell. When I use ansi-color-for-comint-mode-on, they are fine --
but as soon as screen or tmux starts, it becomes a horrible mess.

Can anyone suggest a set of conditions for proper interpretation of
ansi color with M-x shell + screen?  Some TERM=... or termcap/info
magic?..  What about getting rid of color altogether?..  Is there
perhaps an alternative way to run persistent remote processes through
tramp?..

TIA,

--Leo



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Gnu screen or tmux in emacs shell mode: how to fix color escape codes?
  2011-01-14 17:50 Gnu screen or tmux in emacs shell mode: how to fix color escape codes? Leo Alekseyev
@ 2011-01-18 14:40 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2011-01-18 14:40 UTC (permalink / raw)
  To: Leo Alekseyev; +Cc: help-gnu-emacs

Leo Alekseyev <dnquark@gmail.com> writes:

> Is there perhaps an alternative way to run persistent remote processes
> through tramp?..

Could you, please, explain in more detail what you have in mind? I
cannot catch your scenario yet.

> TIA,
>
> --Leo

Best regards, Michael.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-18 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 17:50 Gnu screen or tmux in emacs shell mode: how to fix color escape codes? Leo Alekseyev
2011-01-18 14:40 ` Michael Albinus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).