0

I need a way to check what if the cursor position is empty. I have been searching for hours with no success. Basically if I move the cursor to a location on the window I want to ensure that location is empty before printing something else there. Any ideas?

Matt
  • 3
  • 1
  • Dan Gurkin published a book on NCurses a few years back. Not sure if it's available as an ebook. – uchuugaka Jan 15 '14 at 05:01
  • 1
    The `inch` family of functions does that, see http://stackoverflow.com/questions/8066592/check-char-at-current-given-position-in-pdcurses-ncurses. You should mask the return value to get the character, e.g. `c = A_CHARTEXT & mvinch(row, col)`. – M Oehm Jan 15 '14 at 06:48

0 Answers0