[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Offset error (when using PS1 with colors and newline)
From: |
dAniel hAhler |
Subject: |
Offset error (when using PS1 with colors and newline) |
Date: |
Thu, 12 Jul 2007 01:07:36 +0200 |
User-agent: |
KMail/1.9.7 |
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bas
h/lib -g -O2 -Wall
uname output: Linux base 2.6.22-7-generic #1 SMP Mon Jun 25 17:33:14 GMT 2007
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu
Bash Version: 3.2
Patch Level: 17
Release Status: release
Description:
If using colors and a newline (\n) in PS1, there is some offset error,
with autocompletion or ctrl-a. It appears to be related to readline.
Please see https://bugs.launchpad.net/ubuntu/+source/bash/+bug/119938
for the bug reported in Ubuntu and another recipe to reproduce it.
Repeat-By:
1. Set PS1="\033[01;37m[ \[\033[01;34m\]\w\[\033[00m\]
\033[01;37m]\n\$\033[00m "
2. Type "foo bar baz"
3. Press ctrl+a
4. Cursor should jump back to the beginning of the line, but instead
jumps back to "foo b."
This is how it looks like with "_" being the cursor:
foo b_ar baz
signature.asc
Description: This is a digitally signed message part.
- Offset error (when using PS1 with colors and newline),
dAniel hAhler <=