bug-ncurses
[Top][All Lists]
Advanced

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

Re: The right way to move the cursor in a panel


From: Thomas Dickey
Subject: Re: The right way to move the cursor in a panel
Date: Fri, 23 Jul 2004 09:46:39 -0400 (EDT)

On Fri, 23 Jul 2004, Mike Aubury wrote:

> But you update_panels() rather than wrefresh()..
> (Or am I missing something)

no - but update_panels() is ultimately using some combination of the lower
level functions in ncurses (such as doupdate wnoutrefresh, etc).  So it's
the same mechanism.

But I don't know - the way to find out would be to write or modify a test
program and see if the behavior is predictable and/or needs improvement.
(The existing panel demo in ncurses.c doesn't exercise this, and I don't
recall that any of the other demos do either).

>
> As for the FIELD reference - I was trying to indicate I was trying to do data
> entry without using libform - so the cursor position is important...
>
> On Friday 23 July 2004 13:10, Thomas Dickey wrote:
> > On Fri, 23 Jul 2004, Mike Aubury wrote:
> > > I have several PANELs open on the screen - I need to move the cursor (the
> > > visible flashing thing!) to a specific location (eg for doing data entry
> > > in a field - without using a FIELD) within one of them of these panels.
> > >
> > > Whats the right way to do this ?
> >
> > generally the cursor will end up on the last refreshed window (usually
> > that's the one that you're doing a wgetch from).
> >
> > I'm a little confused about the data entry for a field without using a
> > FIELD.
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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