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.
Perhaps you could use getmaxx and getmaxy separately...?
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).