LINES and COLS in curses.h ???

Joseph S. D. Yao jsdy at hadron.UUCP
Sun Dec 1 11:07:02 AEST 1985


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 at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.unix mailing list