[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to display that a term is inside emacs
From: |
henry atting |
Subject: |
Re: how to display that a term is inside emacs |
Date: |
Wed, 04 Dec 2013 21:51:54 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
"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
Re: how to display that a term is inside emacs, Emanuel Berg, 2013/12/04