[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash strangeness with utf-8
From: |
Benno Schulenberg |
Subject: |
Re: bash strangeness with utf-8 |
Date: |
Mon, 09 Jul 2007 00:56:01 +0200 |
User-agent: |
KMail/1.9.7 |
Giraud wrote:
> The following prompt is set in my .bashrc (but the same behavior
> happens if I do not set it or set it to a simple string, so I
> don't think this matters):
>
> PS1="\[\033[33m\]\h-\u\[\033[36m\] [\w] (\!)\[\033[00m\] "
>
> PROMPT_COMMAND is not set.
Look at your typescript with vim. You'll see this gets printed:
^[]0;joe@crater:~^G^[[?1034h
before your prompt is printed:
^[[33mcrater-joe^[[36m [~] (500)^[[00m
Where is that first string coming from if not from PROMPT_COMMAND?
It looks suspiciously similar to what Gentoo sets as prompt command
in /etc/bash/bashrc. :) Except for this "^[[?1034h" at the end.
Where is that coming from? It does strange things with the width of
the terminal when I add it here to PS1. So when you get rid of it,
things might work correctly again.
Benno
- bash strangeness with utf-8, Joe Peterson, 2007/07/01
- Re: bash strangeness with utf-8, Benno Schulenberg, 2007/07/01
- Message not available
- Re: bash strangeness with utf-8, Giraud, 2007/07/11
- Re: bash strangeness with utf-8,
Benno Schulenberg <=
- Message not available
- Re: bash strangeness with utf-8, Giraud, 2007/07/11
- Re: bash strangeness with utf-8, Benno Schulenberg, 2007/07/09
- Message not available
- Re: bash strangeness with utf-8, Giraud, 2007/07/11
- Re: bash strangeness with utf-8, Benno Schulenberg, 2007/07/09
- Re: bash strangeness with utf-8, Joe Peterson, 2007/07/09
- Re: bash strangeness with utf-8, Benno Schulenberg, 2007/07/10
- Re: bash strangeness with utf-8, Joe Peterson, 2007/07/10