newLISP Fan Club

Forum => newLISP in the real world => Topic started by: tylerdmace on November 28, 2009, 05:13:30 PM

Title: ncurses and newlisp
Post by: tylerdmace on November 28, 2009, 05:13:30 PM
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.


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.
Title: Re: ncurses and newlisp
Post by: cormullion on November 29, 2009, 12:11:49 PM
Perhaps you could use getmaxx and getmaxy separately...?
Title: Re: ncurses and newlisp
Post by: tylerdmace on November 29, 2009, 02:58:17 PM
Quote from: "cormullion"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).