all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: henry atting <snd@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to display that a term is inside emacs
Date: Wed, 04 Dec 2013 21:51:54 +0100	[thread overview]
Message-ID: <87r49sfifp.fsf@bye.fritz.box> (raw)
In-Reply-To: 87haao1ltu.fsf@kuiper.lan.informatimago.com

"Pascal J. Bourguignon" <pjb@informatimago.com> writes:

> henry atting <snd@online.de> writes:
>
>> On X I have no window decoration, emacs starts without mode-line, menu,
>> toolbar. One of the things I use emacs is as terminal emulator
>> (multi-term). So far, so good.
>> At times I open up rxvt-unicode as terminal emulator beside emacs. Both
>> look rather similar, no decoration, same background- same foreground
>> color. 
>>
>> Is there a way to add something informative to the prompt (like the file
>> manager ranger does) or display somewhere else something like
>> `inside_emacs' for instance to indicate that this terminal is inside
>> emacs?
>
> 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.

Thanks,
henry


  reply	other threads:[~2013-12-04 20:51 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 [this message]
2013-12-04 20:56     ` Emanuel Berg
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=87r49sfifp.fsf@bye.fritz.box \
    --to=snd@online.de \
    --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.