From: David Caldwell <david@porkrind.org>
To: emacs-devel@gnu.org
Subject: Re: tramp:sshx:(screen|tmux)
Date: Thu, 11 Sep 2014 12:41:38 -0700 [thread overview]
Message-ID: <5411FAF2.7030007@porkrind.org> (raw)
In-Reply-To: <m2ha0f1pma.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]
On 9/10/14 8:06 AM, Sam Steingold wrote:
> 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.
Tmux has the relatively unknown -C option which puts it into command
mode. Here's what it looks like:
$ tmux -C attach
%begin 1410464037 1 0
%end 1410464037 1 0
%session-changed $0 0
%layout-change @0 b25d,80x24,0,0,0
%layout-change @1 b25e,80x24,0,0,1
%layout-change @2 b25f,80x24,0,0,2
%layout-change @3 b260,80x24,0,0,3
send-keys "echo hello\n"
%begin 1410464043 2 1
%end 1410464043 2 1
%output %0 \015\033[K\033]0;david@death:
~\007\033[01;32mdavid@death\033[00m:\033[01;34m~\033[00m$ echo
hello\015\012hello\015\012
%output %0 \033]0;david@death:
~\007\033[01;32mdavid@death\033[00m:\033[01;34m~\033[00m$
detach-client
%begin 1410464047 3 1
%end 1410464047 3 1
Lines starting with a % are from tmux, the "send-keys" and
"detach-client" are commands I sent to it.
Though I suspect for the purposes you want, there's still too much
terminal nonsense going on--tmux command mode just lets you get to the
heart of tmux, but input and output to the processes it controls is
still very terminal oriented.
-David
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]
next prev parent reply other threads:[~2014-09-11 19:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 18:38 tramp:sshx:(screen|tmux) Sam Steingold
2014-09-10 13:55 ` tramp:sshx:(screen|tmux) Michael Albinus
2014-09-10 14:12 ` tramp:sshx:(screen|tmux) joakim
2014-09-10 15:09 ` tramp:sshx:(screen|tmux) Sam Steingold
2014-09-10 18:06 ` tramp:sshx:(screen|tmux) Michael Albinus
2014-09-10 18:42 ` tramp:sshx:(screen|tmux) Stefan Monnier
2014-09-11 0:22 ` tramp:sshx:(screen|tmux) Svend Sorensen
2015-05-07 13:33 ` tramp:sshx:(screen|tmux) Sam Steingold
2014-09-10 15:06 ` tramp:sshx:(screen|tmux) Sam Steingold
2014-09-10 17:56 ` tramp:sshx:(screen|tmux) Michael Albinus
2014-09-10 18:37 ` tramp:sshx:(screen|tmux) Stefan Monnier
2014-09-11 19:41 ` David Caldwell [this message]
2014-09-11 20:26 ` tramp:sshx:(screen|tmux) Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5411FAF2.7030007@porkrind.org \
--to=david@porkrind.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.