Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!mit-eddie!shawn From: shawn@mit-eddie.MIT.EDU (Shawn F. Mckay) Newsgroups: net.unix-wizards Subject: -ltermcap Message-ID: <2773@mit-eddie.MIT.EDU> Date: Sun, 3-Aug-86 12:10:54 EDT Article-I.D.: mit-eddi.2773 Posted: Sun Aug 3 12:10:54 1986 Date-Received: Mon, 4-Aug-86 00:54:25 EDT Organization: M.I.T. EE/CS Computer Facility, Cambridge MA Lines: 25 Keywords: contest Greetings. I am having great problems with termcap. Has anyone out there ever figured out how this works for simple applications? For example, I want the 'cl' codes for a given terminal type, and don't wan't to have to write a 500 page library like curses to get it. On the other hand, I would rather not write my own termcap. One would think I could say something like: char buff[20]; tgetstr ("cl", buff); And have it use the buffer it retreived from the call to tgetent() to find my capability. But, no, this would be too easy. Is there some simple, and fast way to get this result? I would also not mind being pointed to some useful documentation on termcap, since I have NEVER seen anything that documents it very clearly. And No, the source code doesn't help, it only adds to the documentation problem. Thanks for any help. - Shawn