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: Tue, 12 Sep 2017 16:53:47 -0500

On Tue, Sep 12, 2017 at 12:42 AM, Sinbad <address@hidden> wrote:

> > Have you looked at terminfo(5) or your operating system's equivalent?
>
> with, 'tput sc' and 'tput rc' I will be able to store only one cursor
> position.
> I want to be able to store multiple locations and return to those positions
> accordingly.
>
> On Mon, Sep 11, 2017 at 7:38 PM, Greg Wooledge <address@hidden>
> wrote:
>
> > On Mon, Sep 11, 2017 at 06:24:16PM +0530, Sinbad wrote:
> > > I want to extract the cursor positions using tput into an array and
> > recover
> > > to the stored cursor positions accordingly at later point in time.
> >
> > Have you looked at terminfo(5) or your operating system's equivalent?
> >
> >        restore_cursor                rc         rc        restore cursor
> to
> >                                                           position of
> last
> >                                                           save_cursor
> >
> >        save_cursor                   sc         sc        save current
> > cursor
> >                                                           position (P)
> >
>

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

-- 
Visit serverfault.com to get your system administration questions answered.


reply via email to

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