Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Problem with color codes
- X-seq: zsh-users 13042
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Subject: Problem with color codes
- Date: Sat, 19 Jul 2008 01:12:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=RSfgZFZ5l3Th5YGKO01pWmRlRSs2sPcerdAkkITOXsg=; b=cKWhRme0t4sjUIdsHc2JIkQB+E3xwbmvHx9gZ+sMyW8FAlx0a6724+MHbZNc3z00ow HBnarNmcpEINcoNuz7HWYv4VlNDbeoBnHRN5uDBBPSZIndB2JKSMaylKz6npfuQ69aZq 9uKHFeqOdrmumNWuRjl7gFemSrASKFvLlxUow=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=qtEO5ClliL99DWIj71pv9YrDBBZXCM9/Lqc9twnN2vB1KGoox96OgoXIQd2Y5S9OHX ewP+ZwUVTrOP4ViKmlGdSAr5C+s5CQID6mw1LGTh21sx1S+z05V4UjOd3l/pJm2ETLJ4 0VyqAyA/tjFifIkA8MBRQOGnK+7/DJ92tUHUk=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
I switched from old, hardcoded color variables over to the colors function.
For some reason, this confuses zsh when calculating the width of my
prompt. It is worth nothing that RPS1 is also affected even though
echo $((${COLUMNS} - 1))
shows the correct width. I am attaching a screenshot with 7 kiB. I
really do hope that is OK, if not, please feel free to cuss at me. My
$PS1 and $RPS1 defintion files are attached, as well.
ZSH 4.3.4 & 4.3.6 show the same behaviour, I could not find any
other versions to test with.
Thanks for all input,
Richard
Attachment:
zsh colors codes.png
Description: PNG image
Attachment:
buildPS1
Description: Binary data
Attachment:
buildRPS1
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author