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: Dennis Williamson
Subject: Re: [Help-bash] Storing cursor positions using tput into an array.
Date: Thu, 14 Sep 2017 15:34:48 -0500

On Sep 13, 2017 7:42 AM, "Greg Wooledge" <address@hidden> wrote:


> http://mywiki.wooledge.org/BashFAQ/006#Assigning_indirect.
2Freference_variables

I don't see the need for that.  If he wants to store 10 cursor positions,
indexed by integers, then he only needs two arrays: x and y.

tput cup "${y[i]}" "${x[i]}"

Or call them "row" and "col" if you prefer.



I agree but it's part of what the OP asked for.


reply via email to

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