Dragonfly Q&A

leaveok() macro returns ERR upon calling.

0 like 0 dislike

Pastebin for GraphicsManager.cpp.

Pastebin for game.cpp.

 

Upon starting up in the GraphicsManager, I encountered an error on leaveok() macro.

Using "man leaveok" in Cygwin 32-bit, it said 

"The functions setscrreg and wsetscrreg return OK upon success and ERR upon failure.  All other routines that return an integer always return OK."

In my case, I have no idea what to do with "leaveok()". Returns something different.

 

Any suggestions?

 
asked Sep 20, 2014 in Other by tom_mai78101
I've never seen leaveok() return an error.  If this is the only curses error, then you can have the cursor off (using curs_set()) and go ahead and let the cursor move freely without worry.  But, since it sounds like in your answer you fixed it, no need to worry, anyway.

1 Answer

0 like 0 dislike
 
Best answer
Found the error. Apparently, what I thought was ncurses taking over gdb in the terminal, actually was a misplaced semicolon in all sorts of if... checkings.

The problem's fixed.
answered Sep 20, 2014 by tom_mai78101
More information about Dragonfly can be found on the Dragonfly Home Page.
...