Page 1 of 1

ncurses and newlisp

Posted: Sun Nov 29, 2009 1:13 am
by tylerdmace
I've been on the hunt for a clean way to find the row/col size of a terminal window for a few hours now and everything I've seen suggest that there's a lib-call (getmaxyx) native to libncurses. I've got both 5.0 and 6.0 installed but niether of them seem to contain that particular method.

Code: Select all

ERR: import function not found in function import : "/lib64/libncurses.so.5: undefined symbol: getmaxyx"
Has anyone found a really good way to solve this problem? I'm sure there's something obvious I'm simply overlooking.

Re: ncurses and newlisp

Posted: Sun Nov 29, 2009 8:11 pm
by cormullion
Perhaps you could use getmaxx and getmaxy separately...?

Re: ncurses and newlisp

Posted: Sun Nov 29, 2009 10:58 pm
by tylerdmace
cormullion wrote:Perhaps you could use getmaxx and getmaxy separately...?
When trying to display text completely centered on the screen, I am unable to do so, even using these two methods. Are there any (even semi) in-depth tutorials on using ncurses with newlisp?

Note: If you're interested in the code I'm trying to use, you can see it here: http://www.silenceisdefeat.com/~tyler (the application is called SecSec).