ncurses and newlisp

Q&A's, tips, howto's
Locked
tylerdmace
Posts: 3
Joined: Sat Nov 28, 2009 10:55 am

ncurses and newlisp

Post 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.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: ncurses and newlisp

Post by cormullion »

Perhaps you could use getmaxx and getmaxy separately...?

tylerdmace
Posts: 3
Joined: Sat Nov 28, 2009 10:55 am

Re: ncurses and newlisp

Post 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).

Locked