Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Index of element after width of characters



On 27 October 2015 at 18:18, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> I then noticed useful (m) flag that returns widths. Scrolling can be
> done this way but basically it requires to output characters one by
> one.

To be exact. Suppose you want to display $COLUMNS wide characters, and
skip N characters from beginning of the string. This can be done with
(m) flag by iterating over every char and detecting when to start
displaying, and when to stop displaying. With (x) and (y) flags this
will be much simpler.

Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author