bug-ncurses
[Top][All Lists]
Advanced

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

Re: Reading characters from WIN*; saving and restoring window cursor


From: Dan Nelson
Subject: Re: Reading characters from WIN*; saving and restoring window cursor
Date: Fri, 26 Jul 2002 13:14:00 -0500
User-agent: Mutt/1.5.1i

In the last episode (Jul 26), Walter Briscoe said:
> I have an application running on an AIX curses port with which I am
> not quite happy. I would like to read the character and attributes at
> an arbitrary position in a window. To me, it seems perverse to
> duplicate the information in the window by holding a copy of it in my
> own code.
> 
> mvwinch(win, y, x) gives me that information at the cost of changing the
> cursor position.

You can use the getyx() macro to get the current cursor position.

-- 
        Dan Nelson
        address@hidden



reply via email to

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