From: Michael Albinus <michael.albinus@gmx.de>
To: Nico Schottelius <nico.schottelius@ungleich.ch>
Cc: 24039@debbugs.gnu.org
Subject: bug#24039: 24.5; emacs shell doesn't work with mosh
Date: Wed, 20 Jul 2016 22:10:04 +0200 [thread overview]
Message-ID: <87fur45aw3.fsf@gmx.de> (raw)
In-Reply-To: <87vb00ic5j.fsf@ungleich.ch> (Nico Schottelius's message of "Wed, 20 Jul 2016 17:04:24 +0200")
Nico Schottelius <nico.schottelius@ungleich.ch> writes:
> Starting M-x shell and afterwards entering "mosh mymachine" results into
> mosh crashing with:
>
> mosh-server: terminalframebuffer.cc:73:
> Terminal::Framebuffer::Framebuffer(int, int): Assertion `s_height > 0'
> failed.
>
> I suspect that the window height is not being exposed in a standard
> terminfo way to be consumed by mosh.
Emacs' `shell' sets $TERM to "dumb", which isn't what mosh expects. Try
"M-x ansi-term", and call "mosh mymachine" from there. This works, at
least for me.
> Furthermore escapes from bash and zsh are displayed as
>
> [J[16:58] wurzel:~% [?2004
>
> (where wurzel is my hostname and 16:58 is the time)
Same reason. Teach your .profile or .bashrc or .zshrc not to use escape
sequences. Use something like this:
if test $TERM = "dumb"
# set prompt w/o escape sequences
else
# set default prompt
end
Best regards, Michael.
next prev parent reply other threads:[~2016-07-20 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 15:04 bug#24039: 24.5; emacs shell doesn't work with mosh Nico Schottelius
2016-07-20 20:10 ` Michael Albinus [this message]
2016-08-08 9:05 ` 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=87fur45aw3.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=24039@debbugs.gnu.org \
--cc=nico.schottelius@ungleich.ch \
/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.