From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: tramp:sshx:(screen|tmux) Date: Wed, 10 Sep 2014 11:06:53 -0400 Organization: disorganization Message-ID: References: <87mwa7d1g6.fsf@gmx.de> Reply-To: sds@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410361658 5474 80.91.229.3 (10 Sep 2014 15:07:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 15:07:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 10 17:07:34 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRjUP-00085D-Rf for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 17:07:22 +0200 Original-Received: from localhost ([::1]:56849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjUO-00052r-TA for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 11:07:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjUH-0004sz-Bv for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRjUC-0003iw-9p for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:07:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjUC-0003il-4I for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:07:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XRjU8-0007rO-Ow for emacs-devel@gnu.org; Wed, 10 Sep 2014 17:07:04 +0200 Original-Received: from 66.9.135.66 ([66.9.135.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2014 17:07:04 +0200 Original-Received: from sds by 66.9.135.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2014 17:07:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 66.9.135.66 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:3TmEoUAZSFnViLRZJWOg2Qvb/68= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174149 Archived-At: Hi Michael, > * Michael Albinus [2014-09-10 15:55:53 +0200]: > Sam Steingold writes: > >> I wonder if it is possible to add a "nohup/screen/tmux" method which >> would create a remote screen/tmux session or reconnect to it if it >> already exists. >> The idea is that some interactions (e.g., an interactive R session) is >> too expensive to restore after a crash caused by a disconnect. > > A while ago, I've played with mosh(*) as Tramp connection method. It > is designed exactly for your case, supporting reconnection of lost > sessions. I failed, because mosh is designed to draw on a screen, > which is not what Tramp needs in a connection buffer. > > Your idea to reconnect to an existing screen / tmux session would > suffer from the same problem I guess. At least I'm not aware how to > support them in an Emacs buffer. I am painfully aware of this problem :-( This is way my code which I posted to the linked article on StackOverflow passes "-c /dev/null" to screen and also runs it in emacs terminal. However, emacs is sufficiently heavy weight (socially) that you (as the tramp maintainer) can ask the screen (and tmux and mosh) maintainers to add the "-emacs" option which will disable all terminal drawing. Thanks! -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265 http://www.childpsy.net/ http://dhimmi.org http://mideasttruth.com http://truepeace.org http://www.memritv.org http://ffii.org http://memri.org A bullet affects the way the brain functions even when it hits the butt.