The following issue has been reported for the Debian package.

After completion, ksh appears to repeat just the last line of the PS1
prompt. In the case of this coloured prompt, it is outputting:

<cr><esc>[0;33m[<esc><esc>[0m156<esc>[0;33m]<esc><esc>[0m$ cl<cr>

So why the duplicated escape characters?

Thanks

Oliver

------- Forwarded Message

Date:    Wed, 22 Sep 2010 22:14:42 +0100
From:    Peter T <ha...@sdf.lonestar.org>
To:      Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: Bug#597776: ksh: issues with colour prompt

Package: ksh
Version: 93s+20080202-1
Severity: normal

Background - on my previous computer running Lenny I did almost all my console
stuff in gnu screen which is not effected by this bug. On my new computer using
Squeeze I've opted for a tiling window manager and lots of terminals in place
of gnu screen.

At the moment I am being forced to use a mono prompt

PS1=`uname -n`':${PWD/#$HOME/\~} [!]\$ '

because of issues with my colour prompt

PS1="^[[0;33m`uname -n`^[[0m:^[[1;33m"'${PWD/#$HOME/\~} ^[[0m
^[[0;33m[^[[0m!^[[0;33m]^[[0m\$ '

This color prompt works fine most of the time but when using tab completion I
end up with something like

host:~ [1]$ cl
1) cls
2) /usr/bin/clear
3) /usr/bin/clear_console
4) /usr/bin/cleanlinks
host[0m:~ [0;33m[[0m1][0m$ cl

hitting enter returns the prompt to normal


I do not observe this behaviour in gnu screen is being run nor if the prompt is
being run on a remote computer over ssh or on the linux console (no X).

This behaviour has been observed using rxvt-unicode (urxvt) and vte based
terminals (roxterm and sakura).

Now it could be that I've made mistakes in my prompt if so I apologise for
wasting your time but it may also be a bug.



- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-4.dmz.2-liquorix-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ksh depends on:
ii  libc6                         2.11.2-5   Embedded GNU C Library: Shared lib

ksh recommends no packages.

ksh suggests no packages.

- -- no debconf information




------- End of Forwarded Message



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to