[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Readline redisplay bug with long prompt
From: |
Andreas Schwab |
Subject: |
Readline redisplay bug with long prompt |
Date: |
Tue, 09 Dec 2008 19:38:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2
-L/usr/src/packages/BUILD/bash-3.2/../readline-5.2
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='powerpc-suse-linux-gnu'
-DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -g -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g
-std=gnu89 -Wextra -Wno-unprototyped-calls -Wno-switch-enum -pipe -fPIE
-fprofile-use
uname output: Linux igel 2.6.28-rc7 #1 SMP Tue Dec 2 20:12:19 CET 2008 ppc64
ppc64 ppc64 GNU/Linux
Machine Type: powerpc-suse-linux-gnu
Bash Version: 3.2
Patch Level: 48
Release Status: release
Description:
Redisplay fails if the prompt wraps around and contains invisible
characters after the wrap point.
Repeat-By:
(assuming 80 column display)
$
PS1='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\$\[\033[0m\]
'
Cycle back and forth through the history. Eventually readline
miscounts the four invisible characters at the end of the prompt.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Readline redisplay bug with long prompt,
Andreas Schwab <=