Bug with Curses

Svante Lindahl zap at ttds.UUCP
Wed Aug 21 22:18:02 AEST 1985


In <4966 at mit-eddie.UUCP> simsong at mit-eddie.UUCP (Simson L. Garfinkel) writes:
> [...]
>I've been using Curses at a number of different cites on both VAXen and
>suns. It appears that any application linked with curses core-dumps if
>the screen is more than 80 col. wide.
>
>Has anybody else run into this? Does anybody know what the fix is? The
>only mention of 80 anywhere in the source code that I can find is in
>cur_c.c:
>
>	      if (COLS <= 4)
>	              COLS = 80;
> [...]

Today I got my new terminal, a Facit Twist, which can be used as a
regular vt100, or, if you twist the screen, like 72-line VT100.
(Now I can write loooong functions and still fit them on one screen :-)

Turns out that some (all?) programs linked with curses dumps core
when the terminal type is set to twist...

Seems like the designers of curses weren't visionary enough (``Gee, -
they'll never make terminals any bigger than 80x24''). Or am I wrong?
I hope so, and that there is an easy fix, 'cause I don't wanna have to
change terminal type each time I run a cursed :-) program.
-- 
Svante Lindahl, NADA, KTH (Dept of Numerical Analysis and Computer Science 
			   at the Royal Institute of Technology)
UUCP:	{seismo,mcvax,cernvax,diku,ircam,prlb2,tut,ukc,unido}!enea!ttds!zap
ARPA:	enea!ttds!zap at seismo.ARPA
 or 	Svante_Lindahl_NADA%QZCOM.MAILNET at MIT-MULTICS.ARPA



More information about the Comp.bugs.4bsd.ucb-fixes mailing list