unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nicholas Ochiel <nochiel@gmail.com>
Cc: dann@ics.uci.edu, emacs-devel@gnu.org
Subject: Re: [GUI emacs:term.el] Possible regression causes word wrapping to break term display in zsh
Date: Sat, 26 Nov 2016 14:52:35 +0200	[thread overview]
Message-ID: <83r35y1jzg.fsf@gnu.org> (raw)
In-Reply-To: <CACO-rLk4ooo77Cj3CttaRpBrKbqeErGNEx_FVgn3f08=ht4==g@mail.gmail.com> (message from Nicholas Ochiel on Sat, 26 Nov 2016 13:29:48 +0300)

> From: Nicholas Ochiel <nochiel@gmail.com>
> Date: Sat, 26 Nov 2016 13:29:48 +0300
> Cc: Dan Nicolaescu <dann@ics.uci.edu>, emacs-devel@gnu.org
> 
> > The discussion there seems to say it has to do with something called
> oh-my-zsh and/or multi-term?
> 
> Indeed, yes, oh-my-zsh (http://ohmyz.sh), which provides plugins for
> zsh appears to be the source of the problem. (I apologise for not
> investigating that a bit more before posting.)
> 
> Specifically, by disabling the plugin which provides *syntax
> highlighting* in the shell,
> (https://github.com/zsh-users/zsh-syntax-highlighting), ~ emacs -Q
> --eval '(term "/bin/zsh")' ~ works without error.
> 
> (However, the syntax highlighting plugin works without any issues in xterm.)

I hope you are aware of the significant difference between any
terminal emulator and an Emacs terminal emulator.  Where the former
can rely on the terminal device driver to perform certain commands
sent by the shell, Emacs must reproduce all of those features in Lisp
code, and convert each command to the equivalent Emacs commands to
move the cursor, insert or delete text, change color of the text, etc.

> I've provided further details below in case they are still relevant.

Thanks.  I think the reason is that term.el's ANSI sequence handler is
simply unprepared to deal with the complex commands this plug-in
causes zsh to send.  As result, term.el becomes confused when text
deletion and reinsertion happen at the end of the screen line.
Patches to term.el to support that are welcome.



  reply	other threads:[~2016-11-26 12:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25 23:04 [GUI emacs:term.el] Possible regression causes word wrapping to break term display in zsh Nicholas Ochiel
2016-11-26  9:12 ` Eli Zaretskii
2016-11-26 10:29   ` Nicholas Ochiel
2016-11-26 12:52     ` Eli Zaretskii [this message]
2016-11-27  6:41       ` Nicholas Ochiel
2016-11-27 15:40         ` Eli Zaretskii

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=83r35y1jzg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=nochiel@gmail.com \
    /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).