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: Emanuel Berg
Subject: Re: how to display that a term is inside emacs
Date: Wed, 04 Dec 2013 21:56:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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 via email to

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