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: GNU Screen inside Emacs? Date: Fri, 09 Apr 2010 09:23:15 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270797828 23678 80.91.229.12 (9 Apr 2010 07:23:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2010 07:23:48 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 09 09:23:47 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 1O08Z8-00085t-4g for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 09:23:46 +0200 Original-Received: from localhost ([127.0.0.1]:55629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O08Z7-0001N7-BK for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 03:23:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O08Yx-0001IF-Cj for emacs-devel@gnu.org; Fri, 09 Apr 2010 03:23:35 -0400 Original-Received: from [140.186.70.92] (port=51641 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O08Yt-0001GJ-Vl for emacs-devel@gnu.org; Fri, 09 Apr 2010 03:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O08Yq-0005oo-9f for emacs-devel@gnu.org; Fri, 09 Apr 2010 03:23:31 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:39926 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O08Yn-0005mx-G7 for emacs-devel@gnu.org; Fri, 09 Apr 2010 03:23:26 -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 o397NFct021027 for ; Fri, 9 Apr 2010 09:23:16 +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:123378 Archived-At: 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