Package: libreadline5
Version: 5.1-1
Severity: normal
This version breaks the %[ and %] characters for psql (from the
postgresql-client-8.1 package) prompts, which are equivalent to \[ and
\] in bash, allowing terminal control characters to be included without
messing up readline's idea of the prompt length.
My ~/.psqlrc includes:
\set PROMPT1 '%[%033[0;35m%]%/@%m%R%#%[%033[0;22m%] '
This worked fine with libreadline5 5.0-11, but with the latest version
the cursor ends up ~13 characters before the end of the prompt. Some
examples of where the cursor ends up:
[EMAIL PROTECTED]
^
[EMAIL PROTECTED]
^
If I remove the control codes that reset the color (between the second
%[ %] pair), the cursor is placed closer to the end of the prompt, but
still over the prompt.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libreadline5 depends on:
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
ii libncurses5 5.5-1 Shared libraries for terminal hand
ii readline-common 5.1-2 GNU readline and history libraries
libreadline5 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]