zsh-users
 help / color / mirror / code / Atom feed
From: Anthony Heading <anthony@ajrh.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: visual line movement
Date: Fri, 27 Jul 2018 07:50:31 -0400	[thread overview]
Message-ID: <1532692231.3689445.1454737008.14BD9406@webmail.messagingengine.com> (raw)
In-Reply-To: <CAHYJk3SmCvXdXemGyQPn6uPgCs73+aSatefX0gGMnJ+fcJ2BbQ@mail.gmail.com>

On Fri, Jul 27, 2018, at 5:53 AM, Mikael Magnusson wrote:
> If you make a custom widget that moves $COLUMNS characters left/right, the effect
> should be approximately the same.

Agreed, though that loses the '\n' handling that the base widget does perfectly, and
it would be nice to think about Unicode, and maybe there are additional sources of
infelicities too.

For my education, I'll try to find the drawing code that Peter mentions and see what
it aims to handle.  The COMBINING_CHARS option looks instructive.

It being 2018 and all, I wonder if reading the cursor position from the terminal
after each character is a workable option.






  reply	other threads:[~2018-07-27 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180727072228epcas5p35fc9a81df04715c148d0b7a9cf582efd@epcas5p3.samsung.com>
2018-07-27  7:10 ` Anthony Heading
2018-07-27  8:30   ` Peter Stephenson
2018-07-27  9:13     ` Daniel Shahaf
2018-07-27  9:53   ` Mikael Magnusson
2018-07-27 11:50     ` Anthony Heading [this message]
2018-07-27 12:48       ` Peter Stephenson

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=1532692231.3689445.1454737008.14BD9406@webmail.messagingengine.com \
    --to=anthony@ajrh.net \
    --cc=zsh-users@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).