Re: [Help-bash] Storing cursor positions using tput into an array.
From:
Sinbad
Subject:
Re: [Help-bash] Storing cursor positions using tput into an array.
Date:
Tue, 12 Sep 2017 11:12:12 +0530
> 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)
>