Xref: utzoo comp.unix.questions:25785 comp.unix.programmer:109 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!travis!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.questions,comp.unix.programmer Subject: getting info from TERMINFO/TERMCAP Keywords: terminfo, termcap, curses Message-ID: <1089@travis.csd.harris.com> Date: 27 Sep 90 14:50:24 GMT Sender: news@travis.csd.harris.com Followup-To: comp.unix.questions Distribution: comp Organization: Harris Computers Systems Division, Fort Lauderdale,FL Lines: 22 References: I want to get some info from terminfo: namely the window size (number of rows and columns) of the tty-screen. That is ALL I need. I DONT want the rest of curses, I DONT need/want to call setupterm(), just the window size. Is there someway to do this directly through terminfo without having to include (or compile with) curses at ALL? I know about the tigetnum() function but it looks like I have to call setupterm first (and I DONT want to use curses or terminfo to do any input or output). As for doing the same thing with termcap. It appears I can use tgetent() combined with tgetnum(). But when I do this I get some unresolved externals from the linker. I cant find in TFM where it says what special libraries (if any) I need to compile with for termcap stuff. Any help would be greatly appreciated!!!!!!!!!!! ______________________ "And miles to go before I sleep." ______________________ Brad Appleton brad@travis.ssd.csd.harris.com Harris Computer Systems ...!uunet!hcx1!brad Fort Lauderdale, FL USA ~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~