Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: since 4.3.4, artifact-appearance at prompt



Russell Hoover <rj@xxxxxxxxx> writes:

> I always now get, at the leftmost column of the blank line, the
> appearance of a percent-sign backgrounded in orange.

I have the same problem. But the percent sign is inverted for me,
always the inverted terminal backgroud colour.  I tried to ask people
in #zsh, but nobody could reproduce it...

It especially often happens when I exit applications with ^D.
(Currently I can _only_ reproduce it that way.)

For instance, take this example:

$ PROMPT='zsh%% ' zsh -f
zsh% rc
% % (Inverted colour, after pressing ^D)
zsh% 

the same happens with sbcl, irb and some other line based application.
(Not ed though. And if I strace =rc, it doesn't show the percent sign,
but it does when I strace zsh. So I guess it's related to zsh.)

<snip from strace>
rt_sigaction(SIGINT, {0x80a2fc0, [], SA_INTERRUPT}, NULL, 8) = 0
write(10, "\33[1m\33[3m%\33[23m\33[1m\33[0m          "..., 167%
) = 167
rt_sigaction(SIGINT, {0x80a2fc0, [], SA_INTERRUPT}, NULL, 8) = 0
<snap>
(Important, the percent sign above is inverted.)

rc is the smallest binary I could get to show the problem and it looks
as if it isn't related to readline as I first thought.

zsh% ldd =rc
        linux-gate.so.1 =>  (0xb7f5a000)
        libm.so.6 => /lib/libm.so.6 (0xb7f24000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7f20000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7f08000)
        libc.so.6 => /lib/libc.so.6 (0xb7dd2000)
        /lib/ld-linux.so.2 (0xb7f5b000)

I accepted the fate, I just wanted to give additional information. :-)

hth,
benny



Messages sorted by: Reverse Date, Date, Thread, Author