Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT
- X-seq: zsh-workers 32359
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT
- Date: Fri, 07 Feb 2014 10:45:36 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1391766337; bh=QlS7xnSnN6mLQjkz0IzKvluMxKehyBCQkjf1CkM0Ngc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Content-Transfer-Encoding:Date:Message-ID; b=QUA+8YxbQY0eNU542Qy7h/RmxkS9MjZrn7L2qmFW0+4VmJWifwbWmWsoEOBnbEQaOXFbzRALx/b87wP9wnlMvsuDywMmrJb+VvLcRFd+35VbGzFDc2w5zQPOXHmgGiQTPeQ7lrG6jKS77MJi2WzLhKEDDzXZVOZetfUT0bfYUNw=
- In-reply-to: <140202135837.ZM15483@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <140202135837.ZM15483@torch.brasslantern.com>
On 2 Feb, Bart wrote:
> Another one we agreed to leave for after a stable release. This takes a
> best guess at whether the terminal can handle having a character written
> to the lower right corner, and removes an unnecessary import from the
> environment [it is already handled correctly by the generic environment
> import in createparamtable()].
This is resulting in my cursor appearing one column more to the left
than it should. Actually, ZLE_RPROMPT_INDENT=0 with 5.0.5
is enough for that to occur. This effect seems to occur only on some
terminals but may be version specific because I get different results
for the same terminal on different systems.
None of the terminals I have are attempting to scroll when writing to
the bottom right corner. The ones that work are ignoring a subsequent
backward cursor movement – as if the cursor had really moved beyond the
edge of terminal.
The output of the following demonstrates:
print -lrn ${(l:$COLUMNS:):-x};echoti cub1;echoti cub1;sleep 1
On a working terminal, the cursor is just to the left of the x for the 1
second delay. On those that fail, it is two back. Is it perhaps possible
to fix this by changing from a relative to an absolute cursor movement
after the RPROMPT is displayed?
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author