help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to display that a term is inside emacs


From: Pascal J. Bourguignon
Subject: Re: how to display that a term is inside emacs
Date: Wed, 04 Dec 2013 20:02:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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.

-- 
__Pascal Bourguignon__
http://www.informatimago.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]