zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT
Date: Fri, 07 Feb 2014 10:45:36 +0100	[thread overview]
Message-ID: <15702.1391766336@thecus.kiddle.eu> (raw)
In-Reply-To: <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


  reply	other threads:[~2014-02-07  9:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-02 21:58 Bart Schaefer
2014-02-07  9:45 ` Oliver Kiddle [this message]
2014-02-07 16:46   ` Bart Schaefer
2014-02-08 19:58     ` Bart Schaefer
2014-02-17 16:12       ` Mikael Magnusson
2014-02-17 18:34         ` Bart Schaefer
2014-12-08  0:46           ` Mikael Magnusson
2014-12-08  4:20             ` Bart Schaefer

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=15702.1391766336@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /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).