zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: bracketed-paste & gnome-terminal
Date: Mon, 21 Mar 2016 10:18:51 -0700	[thread overview]
Message-ID: <160321101851.ZM26063@torch.brasslantern.com> (raw)
In-Reply-To: <20160321163820.GB17123@lorien.comfychair.org>

On Mar 21,  9:38am, Danek Duvall wrote:
}
} Except that emacs now seems to set TERM=dumb [...]
} Is there a better way to check for running inside emacs?

Some versions of emacs export EMACS=t into the environment.  I don't know
how reliable that is, either.

I have this in .zshrc; I have no recollection of how old that "eterm"
comment is:

case ${TERM:-dumb} in
emacs|dumb)
    [[ $EMACS = t ]] || return 0
    export TERMCAP='emacs|:am:bl=:cr=^M:do=^J:sf=^J:'
    TERM=emacs 2>/dev/null
    export EDITOR=emacs
    stty -onlcr -echo
    ttyctl -f
    ;;
#  eterm)
#      # This is bad; eterm is the Enlightenment terminal emulator name.
#      # Recent versions of emacs now use 'emacs-em7930' and stuff their
#      # own termcap or terminfo into the process environment.
#      TERM=vt100
#      ;;
esac


  reply	other threads:[~2016-03-21 17:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10 22:29 Danek Duvall
2016-03-10 22:52 ` Bart Schaefer
2016-03-14 19:57   ` Danek Duvall
2016-03-20 18:34     ` Bart Schaefer
     [not found]     ` <160320113419.ZM22381__3117.39058602161$1458498907$gmane$org@torch.brasslantern.com>
2016-03-21 16:08       ` Daniel Shahaf
2016-03-21 16:38         ` Danek Duvall
2016-03-21 17:18           ` Bart Schaefer [this message]
2016-03-21 17:10         ` Bart Schaefer
2016-03-22  1:24           ` Daniel Shahaf
2016-03-21 17:30   ` Danek Duvall

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=160321101851.ZM26063@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.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 public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).