unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* GNU Screen inside Emacs?
@ 2010-04-09  7:23 joakim
  2010-04-09  7:54 ` Thierry Volpiatto
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: joakim @ 2010-04-09  7:23 UTC (permalink / raw)
  To: Emacs development discussions

I would like to connect to long running remote ssh commands inside Emacs
shells. Normaly one uses Gnu Screen for this, but Screen doesnt work
inside an Emacs shell. I could use a Emacs terminal, but thats
inconvenient.

Currently I try using starting this command inside an emacs shell
session:

TERM=xterm screen

I need to trick screen since it doesnt want to run in a "dumb" terminal
since it needs terminal erase for standard operation. This trick works a
little bit, but color escapes look weird, and so on, and its not the
right solution.

Ok, so something somewhere must change for this to work like I want, I'm
not just sure where, which is why I ask here. What soultion would be
most Emacsy?

- patch Screen so it works sufficiently in dumb terminals?
- patch the Emacs shell so its not "dumb" but maps some particular
  escapes to emacs commands?
- something else altogether involving writing a much dumber screen
  replacement, perhaps involving nohup, or disown.
- using emacs in demon mode and some kind of emacs buffer sync package
  between 2 instances. Overkill but interesting.

-- 
Joakim Verona




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

* Re: GNU Screen inside Emacs?
  2010-04-09  7:23 GNU Screen inside Emacs? joakim
@ 2010-04-09  7:54 ` Thierry Volpiatto
  2010-04-09  8:14 ` joakim
  2010-04-10  1:16 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Thierry Volpiatto @ 2010-04-09  7:54 UTC (permalink / raw)
  To: emacs-devel

joakim@verona.se writes:

> I would like to connect to long running remote ssh commands inside Emacs
> shells. Normaly one uses Gnu Screen for this, but Screen doesnt work
> inside an Emacs shell. I could use a Emacs terminal, but thats
> inconvenient.
>
> Currently I try using starting this command inside an emacs shell
> session:
>
> TERM=xterm screen
>
> I need to trick screen since it doesnt want to run in a "dumb" terminal
> since it needs terminal erase for standard operation. This trick works a
> little bit, but color escapes look weird, and so on, and its not the
> right solution.
>
> Ok, so something somewhere must change for this to work like I want, I'm
> not just sure where, which is why I ask here. What soultion would be
> most Emacsy?
>
> - patch Screen so it works sufficiently in dumb terminals?
> - patch the Emacs shell so its not "dumb" but maps some particular
>   escapes to emacs commands?
> - something else altogether involving writing a much dumber screen
>   replacement, perhaps involving nohup, or disown.
> - using emacs in demon mode and some kind of emacs buffer sync package
>   between 2 instances. Overkill but interesting.

You can start ssh in an xterm, and then run term or ansi-term in emacs
and use screen -x

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/





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

* Re: GNU Screen inside Emacs?
  2010-04-09  7:23 GNU Screen inside Emacs? joakim
  2010-04-09  7:54 ` Thierry Volpiatto
@ 2010-04-09  8:14 ` joakim
  2010-04-10  1:16 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: joakim @ 2010-04-09  8:14 UTC (permalink / raw)
  To: Emacs development discussions

joakim@verona.se writes:

> I would like to connect to long running remote ssh commands inside Emacs
> shells. Normaly one uses Gnu Screen for this, but Screen doesnt work
> inside an Emacs shell. I could use a Emacs terminal, but thats
> inconvenient.
>
> Currently I try using starting this command inside an emacs shell
> session:
>
> TERM=xterm screen
>
> I need to trick screen since it doesnt want to run in a "dumb" terminal
> since it needs terminal erase for standard operation. This trick works a
> little bit, but color escapes look weird, and so on, and its not the
> right solution.
>
> Ok, so something somewhere must change for this to work like I want, I'm
> not just sure where, which is why I ask here. What soultion would be
> most Emacsy?
>
> - patch Screen so it works sufficiently in dumb terminals?
> - patch the Emacs shell so its not "dumb" but maps some particular
>   escapes to emacs commands?
> - something else altogether involving writing a much dumber screen
>   replacement, perhaps involving nohup, or disown.
> - using emacs in demon mode and some kind of emacs buffer sync package
>   between 2 instances. Overkill but interesting.

I got some advice that "dtach" might be suitable, so I'll look into
that.

-- 
Joakim Verona




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

* Re: GNU Screen inside Emacs?
  2010-04-09  7:23 GNU Screen inside Emacs? joakim
  2010-04-09  7:54 ` Thierry Volpiatto
  2010-04-09  8:14 ` joakim
@ 2010-04-10  1:16 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2010-04-10  1:16 UTC (permalink / raw)
  To: joakim; +Cc: Emacs development discussions

> What soultion would be most Emacsy?

The most Emacsy is surely to run the command in an Emacs *shell*, and
then to connect to that process via emacsclient.  I use Emacs as a form
of Screen.


        Stefan





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

end of thread, other threads:[~2010-04-10  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09  7:23 GNU Screen inside Emacs? joakim
2010-04-09  7:54 ` Thierry Volpiatto
2010-04-09  8:14 ` joakim
2010-04-10  1:16 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).