Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: positioning of RPS1
- X-seq: zsh-users 23272
- From: Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: positioning of RPS1
- Date: Sat, 24 Mar 2018 17:20:40 -0600
- Arc-authentication-results: i=1; tncsrv06.tnetconsulting.net; none
- Arc-filter: OpenARC Filter v0.1.0 tncsrv06.tnetconsulting.net w2ONJmFn032511
- Arc-message-signature: i=1; a=rsa-sha256; d=tnetconsulting.net; s=2015; t=1521933590; c=relaxed/simple; bh=TuJChv6AXaUHNJ7ZyUYtZNs+AJ3V77aJD5znO350Azg=; h=DKIM-Signature:Subject:To:From:Message-ID:Date:User-Agent: MIME-Version:Content-Type; b=XWg/o+40vhS46QCLCmG/OHV91nyDlqfnjFcTvsa3iO7Wl2idnteI1JmhHm5pcWQZLR4gYYrIiduZUKdxhydG8VvhZDfONE0Td5V/p8aMylu4Neu+Cl+Eiiqd1kdIIgwxV0jbgWvL0D9wa69LBwJ+XaulvSP2CNS4M6n0MaBI5Hw=
- Arc-seal: i=1; a=rsa-sha256; d=tnetconsulting.net; s=2015; t=1521933590; cv=none; b=UnkqZSrfj6DcGCDPBbhL8o/sFezgkSxe9lvmh/+qMGcNAzk3kkXFb9MHqd8/iQkEwaGT5G9ZWmJo2lD8XRYri5fqvTFhheNRGsMfY/yootjZRWOobrcICvdLLBJDRKzFQUcLcS6A9g2byRuKwTjsgWEq+swOsSk+r0ieSwhwlo8=
- Authentication-results: tncsrv06.tnetconsulting.net; arc=none header.d=tnetconsulting.net
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=tnetconsulting.net; s=2015; t=1521933590; bh=TuJChv6AXaUHNJ7ZyUYtZNs+AJ3V77aJD5znO350Azg=; h=Subject:To:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Cc:Content-Disposition: Content-Language:Content-Transfer-Encoding:Content-Type:Date:From: In-Reply-To:Message-ID:MIME-Version:References:Reply-To: Resent-Date:Resent-From:Resent-To:Resent-Cc:Sender:Subject:To: User-Agent; b=e8r4PwZFk8nbGEqOymMPh/RJyatadao/0E56NwKVaTGZraMICIFncmrphGhNUFzFu 8I03g3JkxOuOYF+MEOA6vMecW6GzUP8KRnDP+iMdw1WZYjOonyRRI1O9X8/UNhQ0X6 ybZQpnAfkEFNUl9/lPUvZjWwgRceztERU1Ah6TL0=
- In-reply-to: <111b6659-b7cd-7be7-3b59-cdb1be9c2f94@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: TNet Consulting
- References: <111b6659-b7cd-7be7-3b59-cdb1be9c2f94@eastlink.ca>
On 03/24/2018 12:44 PM, Ray Andrews wrote:
I remember reading something about zsh needing to calculate the actual
width of the promps but I can't find it. Does someone have a fast fix,
or a reference in the docs?
I don't have a fast fix but I do recall what you're talking about.
I think the trick was to put non-printing characters (like escape
sequences) inside of "%{…}" sequences. That tells Zsh not to use
characters in that sequence as printable characters when calculating the
prompt width. I believe the same thing applies to both PROMPT and RPROMPT.
--
Grant. . . .
unix || die
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author