bug-ncurses
[Top][All Lists]
Advanced

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

Reading characters from WIN*; saving and restoring window cursor


From: Walter Briscoe
Subject: Reading characters from WIN*; saving and restoring window cursor
Date: Fri, 26 Jul 2002 16:58:47 +0100
User-agent: Turnpike/6.02-S (<XRTseyVkrexFjzXkqWRNCbMOZN>)

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.

I can save and restore the cursor position within a window by
manipulating win->_cury and win->_curx. This seems a vile hack.

I can use wmove to place the logical cursor. There seems to be no
function to read the position of the logical curaor.

Have I missed things or do I need to descend to the data structures
manipulated by the API to do what I want?
--
Walter Briscoe



reply via email to

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