From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: GNU Screen inside Emacs? Date: Fri, 09 Apr 2010 10:14:13 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270800872 1951 80.91.229.12 (9 Apr 2010 08:14:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2010 08:14:32 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 09 10:14:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O09MA-00063E-Po for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 10:14:27 +0200 Original-Received: from localhost ([127.0.0.1]:55718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O09M9-00069y-6v for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 04:14:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O09M3-00069e-Fa for emacs-devel@gnu.org; Fri, 09 Apr 2010 04:14:19 -0400 Original-Received: from [140.186.70.92] (port=59694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O09M2-00069W-22 for emacs-devel@gnu.org; Fri, 09 Apr 2010 04:14:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O09M0-0005Rp-CA for emacs-devel@gnu.org; Fri, 09 Apr 2010 04:14:17 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:40060 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O09Lz-0005Rg-Uz for emacs-devel@gnu.org; Fri, 09 Apr 2010 04:14:16 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id o398EDRW021295 for ; Fri, 9 Apr 2010 10:14:14 +0200 In-Reply-To: (joakim@verona.se's message of "Fri, 09 Apr 2010 09:23:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123382 Archived-At: 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