Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!lll-crg!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.unix Subject: Re: LINES and COLS in curses.h ??? Message-ID: <112@hadron.UUCP> Date: Sat, 30-Nov-85 20:07:02 EST Article-I.D.: hadron.112 Posted: Sat Nov 30 20:07:02 1985 Date-Received: Mon, 2-Dec-85 03:31:26 EST References: <1166@princeton.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Distribution: net Organization: Hadron, Inc., Fairfax, VA Lines: 19 Both Berkeley and System V have reasonably comprehensive, if not always comprehensible, descriptions of curses routines. Warning: System V Release 2.0 Version 1 & following refer to terminfo curses, not termcap curses, which while much similar is not exactly similar. I believe one of the recent AT&T folks' books had a section on using termcap and curses. Bourne? Kernighan & Pike? Anyway, to answer your question, initscr() initialises LINES and COLS. Warning: if you have a TTY 5620 (blit, jerq, whatever), then you will have to modify initscr.c to include the ioctl(JIOCTLwhatever) for the windows. The code can be found in ex_tty.c for s5r1 (but not r2!). Also Warning: the terminfo description for the 5620 delivered with the 5620 package is wrong: it should have the nel=^J deleted. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}