GNU bug report logs - #24039
24.5; emacs shell doesn't work with mosh

Previous Next

Package: emacs;

Reported by: Nico Schottelius <nico.schottelius <at> ungleich.ch>

Date: Wed, 20 Jul 2016 15:56:03 UTC

Severity: minor

Tags: notabug

Found in version 24.5

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nico Schottelius <nico.schottelius <at> ungleich.ch>
Subject: bug#24039: closed (Re: bug#24039: 24.5; emacs shell doesn't work
 with mosh)
Date: Mon, 08 Aug 2016 09:06:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#24039: 24.5; emacs shell doesn't work with mosh

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 24039 <at> debbugs.gnu.org.

-- 
24039: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24039
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Nico Schottelius <nico.schottelius <at> ungleich.ch>
Cc: 24039-done <at> debbugs.gnu.org
Subject: Re: bug#24039: 24.5; emacs shell doesn't work with mosh
Date: Mon, 08 Aug 2016 11:05:45 +0200
> Nico Schottelius <nico.schottelius <at> 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.

[Message part 3 (message/rfc822, inline)]
From: Nico Schottelius <nico.schottelius <at> ungleich.ch>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; emacs shell doesn't work with mosh
Date: Wed, 20 Jul 2016 17:04:24 +0200
[Message part 4 (text/plain, inline)]
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.

Furthermore escapes from bash and zsh are displayed as

[16:58] wurzel:~% [?2004

(where wurzel is my hostname and 16:58 is the time)




In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6)
 of 2016-06-04 on juergen
Windowing system distributor `The X.Org Foundation', version 11.0.11803000
System Description:	Arch Linux

Configured using:
 `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  diff-auto-refine-mode: t
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  shell-dirtrack-mode: t
  global-edit-server-edit-mode: t
  savehist-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Are you sure you want to execute 1 mark? (y or n) y
[mu4e] Update process is already running [4 times]
Beginning of buffer [4 times]
[mu4e] Found 19 matching messages
[mu4e] Found 21 matching messages
Mark set
call-interactively: Buffer is read-only: #<buffer *mu4e-headers*>
Mark set
Are you sure you want to execute 3 marks? (y or n) y
Making completion list... [2 times]

Load-path shadows:
~/.emacs.d/lisp/haskell hides /usr/share/emacs/site-lisp/haskell-mode/haskell
~/.emacs.d/lisp/magit hides /usr/share/emacs/site-lisp/magit/magit
/usr/share/emacs/site-lisp/haskell-mode/highlight-uses-mode hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/highlight-uses-mode
/usr/share/emacs/site-lisp/haskell-mode/ghc-core hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/ghc-core
~/.emacs.d/lisp/haskell hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell
/usr/share/emacs/site-lisp/haskell-mode/haskell-menu hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-menu
/usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-cabal
/usr/share/emacs/site-lisp/haskell-mode/haskell-interactive-mode hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-interactive-mode
/usr/share/emacs/site-lisp/haskell-mode/haskell-compile hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-compile
/usr/share/emacs/site-lisp/haskell-mode/haskell-customize hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-customize
/usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-indent
/usr/share/emacs/site-lisp/haskell-mode/ghci-script-mode hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/ghci-script-mode
/usr/share/emacs/site-lisp/haskell-mode/haskell-move-nested hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-move-nested
/usr/share/emacs/site-lisp/haskell-mode/haskell-sandbox hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-sandbox
/usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-indentation
/usr/share/emacs/site-lisp/haskell-mode/haskell-process hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-process
/usr/share/emacs/site-lisp/haskell-mode/haskell-align-imports hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-align-imports
/usr/share/emacs/site-lisp/haskell-mode/haskell-session hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-session
/usr/share/emacs/site-lisp/haskell-mode/haskell-compat hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-compat
/usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-font-lock
/usr/share/emacs/site-lisp/haskell-mode/w3m-haddock hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/w3m-haddock
/usr/share/emacs/site-lisp/haskell-mode/haskell-c2hs hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-c2hs
/usr/share/emacs/site-lisp/haskell-mode/haskell-complete-module hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-complete-module
/usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-decl-scan
/usr/share/emacs/site-lisp/haskell-mode/haskell-presentation-mode hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-presentation-mode
/usr/share/emacs/site-lisp/haskell-mode/haskell-modules hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-modules
/usr/share/emacs/site-lisp/haskell-mode/haskell-sort-imports hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-sort-imports
/usr/share/emacs/site-lisp/haskell-mode/haskell-collapse hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-collapse
/usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-doc
/usr/share/emacs/site-lisp/haskell-mode/haskell-checkers hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-checkers
/usr/share/emacs/site-lisp/haskell-mode/haskell-hoogle hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-hoogle
/usr/share/emacs/site-lisp/haskell-mode/haskell-debug hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-debug
/usr/share/emacs/site-lisp/haskell-mode/haskell-lexeme hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-lexeme
/usr/share/emacs/site-lisp/haskell-mode/haskell-completions hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-completions
/usr/share/emacs/site-lisp/haskell-mode/haskell-unicode-input-method hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-unicode-input-method
/usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/inf-haskell
/usr/share/emacs/site-lisp/haskell-mode/haskell-load hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-load
/usr/share/emacs/site-lisp/haskell-mode/haskell-repl hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-repl
/usr/share/emacs/site-lisp/haskell-mode/haskell-commands hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-commands
/usr/share/emacs/site-lisp/haskell-mode/haskell-navigate-imports hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-navigate-imports
/usr/share/emacs/site-lisp/haskell-mode/haskell-utils hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-utils
/usr/share/emacs/site-lisp/haskell-mode/haskell-string hides /usr/share/emacs/site-lisp/haskell-mode/build-24.5.1/haskell-string
~/.emacs.d/lisp/octave hides /usr/share/emacs/24.5/lisp/progmodes/octave
~/.emacs.d/lisp/org hides /usr/share/emacs/24.5/lisp/org/org

Features:
(shadow sort mail-extr emacsbug magit-extras linum conf-mode ffap vc-git
mule-util gnus-dired org-mu4e org org-macro org-footnote org-pcomplete
org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle
ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval
org-compat org-macs org-loaddefs find-func mu4e desktop frameset
mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context
mu4e-view cal-menu calendar cal-loaddefs thingatpt epa epg browse-url
mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 smtpmail
sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view
jka-compr image-mode mu4e-lists mu4e-vars hl-line cl mu4e-meta
magit-blame magit-stash magit-bisect magit-remote magit-commit
magit-sequence magit package epg-config magit-apply dired magit-wip
magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert
autorevert filenotify magit-process magit-popup magit-mode help-mode
magit-git crm magit-section magit-utils git-commit log-edit message idna
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log with-editor tramp-sh tramp tramp-compat tramp-loaddefs
trampver shell pcomplete format-spec server dash
haskell-interactive-mode haskell-presentation-mode haskell-collapse
haskell-process haskell-session url-util url-parse auth-source eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util
mm-util mail-prsvr password-cache url-vars json haskell-navigate-imports
haskell-compile haskell-mode easymenu haskell-cabal derived
haskell-utils haskell-font-lock haskell-indentation haskell-string
haskell-sort-imports haskell-lexeme rx haskell-align-imports
haskell-compat haskell-complete-module cl-macs gv noutline outline
flymake etags compile comint ring dabbrev ansi-color haskell-customize
haskell-mode-autoloads edit-server advice help-fns easy-mmode edmacro
kmacro cl-loaddefs cl-lib savehist time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 250900 35920)
 (symbols 48 35211 0)
 (miscs 40 239 620)
 (strings 32 80363 39514)
 (string-bytes 1 2484075)
 (vectors 16 30215)
 (vector-slots 8 712405 16885)
 (floats 8 208 433)
 (intervals 56 1075 160)
 (buffers 960 34)
 (heap 1024 59011 10442))
[Message part 5 (text/plain, inline)]
-- 
Werde Teil des modernen Arbeitens im Glarnerland auf www.digitalglarus.ch!
Lese Neuigkeiten auf Twitter: www.twitter.com/DigitalGlarus
Diskutiere mit auf Facebook:  www.facebook.com/digitalglarus
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 8 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.