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

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

Re: [TRAMP] Setting remote prompt


From: Loris Bennett
Subject: Re: [TRAMP] Setting remote prompt
Date: Tue, 24 Apr 2018 11:50:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Yuri Khan <yuri.v.khan@gmail.com> writes:

> On Tue, Apr 24, 2018 at 3:15 PM, Loris Bennett
> <loris.bennett@fu-berlin.de> wrote:
>> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>>   $ echo $PS1
>>>   \[\033]2;\u@\h\a\]\[\e[35m\][\t] \[\e[31m\]\u@\h \[\e[36m\](\!) 
>>> \[\e[33m\]\w\[\e[34m\]\[\033[0m\]\n$
>>
>> First I need to work out what the first instance of '\u@\h' is there
>> for, as it's been a few years since I set it up.
>
> OSC 2;\u@\h BEL
>
> In xterm and its derivatives, this sets your window title to the
> current user@host.

Yes, you are right.  So it wasn't the text that was dim, it was me :-)

So I guess I should be adding that bit conditionally depending on the
type of terminal. 

Cheers,

Loris

-- 
This signature is currently under construction.


reply via email to

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