help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Storing cursor positions using tput into an array.


From: Greg Wooledge
Subject: Re: [Help-bash] Storing cursor positions using tput into an array.
Date: Thu, 14 Sep 2017 16:44:05 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Thu, Sep 14, 2017 at 03:34:48PM -0500, Dennis Williamson wrote:
> I agree but it's part of what the OP asked for.

The trick is to look past the exact wording of the first question and
figure out what the actual underlying goal is.  Often this doesn't become
clear until the second or third iteration.

Bash *cannot* store an array of n-tuples (n-element lists), so a single
array of (X,Y) coordinate pairs simply doesn't make sense in bash.
But once you know that you just want to store a bunch of (X,Y) coords,
you can use something bash *can* do, like two separate arrays that
share a common set of indices.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]