From: Michael Albinus <michael.albinus@gmx.de>
To: Nico Schottelius <nico.schottelius@ungleich.ch>
Cc: 24039-done@debbugs.gnu.org
Subject: bug#24039: 24.5; emacs shell doesn't work with mosh
Date: Mon, 08 Aug 2016 11:05:45 +0200 [thread overview]
Message-ID: <87vazbmxzq.fsf@gmx.de> (raw)
In-Reply-To: <87fur45aw3.fsf@gmx.de> (Michael Albinus's message of "Wed, 20 Jul 2016 22:10:04 +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
Since there is no bug in Emacs, I'm closing this. Feel free to reopen if
you believe there's still something open to fix.
Best regards, Michael.
prev parent reply other threads:[~2016-08-08 9:05 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
2016-08-08 9:05 ` Michael Albinus [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vazbmxzq.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=24039-done@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).