zsh-users
 help / color / mirror / code / Atom feed
From: Benjamin Andresen <bandresen@gmail.com>
To: zsh-users@sunsite.dk
Subject: Re: since 4.3.4, artifact-appearance at prompt
Date: Sun, 04 Nov 2007 15:51:58 +0100	[thread overview]
Message-ID: <87sl3m2hdd.fsf@brian.griffin> (raw)
In-Reply-To: <20071103234335.GB10499@panix.com> (Russell Hoover's message of "Sat\, 3 Nov 2007 19\:43\:35 -0400")

Russell Hoover <rj@panix.com> 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


      parent reply	other threads:[~2007-11-04 14:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-03 23:43 Russell Hoover
2007-11-04  1:30 ` Bart Schaefer
2007-11-04  3:48   ` Russell Hoover
2007-11-04  7:00     ` Atom Smasher
2007-11-04 17:48       ` Bart Schaefer
2007-11-04 22:16         ` Wayne Davison
2007-11-04 23:48           ` Bart Schaefer
2007-11-05  6:01             ` Wayne Davison
2007-11-05 15:16               ` Bart Schaefer
2007-11-05 11:28         ` Oliver Kiddle
2007-11-05 15:35           ` Bart Schaefer
2007-11-04 22:18       ` Wayne Davison
2007-11-04 14:51 ` Benjamin Andresen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sl3m2hdd.fsf@brian.griffin \
    --to=bandresen@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).