GNU bug report logs -
#2400
23.0.90; shell-mode: garbage in prompt
Previous Next
Reported by: Xavier Maillard <xma <at> gnu.org>
Date: Fri, 20 Feb 2009 01:35:04 UTC
Severity: normal
Tags: notabug
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #39 received at 2400-done <at> debbugs.gnu.org (full text, mbox):
tags 2400 notabug
stop
Xavier Maillard wrote:
> Here is the definition of my PS1 variable:
>
> \[\033]0;\u@\h: \w\007\]\[\033[0m\033[0;1m\][\[\033[0m\033[0;32m\]\u@\h \[\033[0m\033[1;34m\]\t \[\033[0m\033[0;36m\]\W\[\033[0m\033[0;1m\]]\[\033[0m\033[0;37m\]\$
This does more than just set your prompt and colour it.
It also sets the xterm title to "user <at> host: pwd".
man console_codes:
ESC ] 2 ; txt ST Set window title to txt
This is not an ANSI colour escape sequence and so is not handled by
ansi-color. It's not appropriate to use such a PS1 setting on something
that is not an xterm. For example, it also messes up on the Linux
console.
This bug report was last modified 14 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.