all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: how to display that a term is inside emacs
Date: Wed, 04 Dec 2013 21:56:41 +0100	[thread overview]
Message-ID: <8738m8l4gt.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: 87r49sfifp.fsf@bye.fritz.box

henry atting <snd@online.de> writes:

>> TERM is probably different in the two terminal
>> emulators.
>>
>> in M-x shell, TERM=emacs
>> in M-x term,  TERM=eterm-color
>> I don't have M-x multi-term
>> in xterm,     TERM=xterm-256color
>> I don't have rxvt-unicode.
>>
>> so you could have:
>>
>>    export PS1="${TERM} ${PS1}"
>>  
>> in your ~/.bashrc etc.
>
> Ah, I see, this changes the bash prompt in urxvt, not
> in emacs. I did not think of doing it this way but
> it's fine by me.  Then again I use zsh, not bash
> (what I unfortunately kept a secret) - it's a little
> more complicated but doable anyway.

I think Emacs reads PS1 as well. Check out my post. It
is not more complicated in zsh and it is the exact same
principle.

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


  reply	other threads:[~2013-12-04 20:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 16:46 how to display that a term is inside emacs henry atting
2013-12-04 19:02 ` Pascal J. Bourguignon
2013-12-04 20:51   ` henry atting
2013-12-04 20:56     ` Emanuel Berg [this message]
2013-12-05 10:38       ` henry atting
2013-12-05 10:49         ` henry atting
2013-12-06 18:26           ` Emanuel Berg
2013-12-04 20:54   ` Emanuel Berg

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=8738m8l4gt.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.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 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.