Received: by ATHENA-PO-1.MIT.EDU (5.45/4.7) id AA24834; Thu, 19 Dec 91 17:19:38 EST
Received: from jester.usask.ca by Athena.MIT.EDU with SMTP
	id AA29699; Thu, 19 Dec 91 17:19:21 EST
Received: by jester.usask.ca (5.57/Ultrix3.0-C)
	id AA13421; Thu, 19 Dec 91 16:18:45 -0600 for thorne@athena.mit.edu
Date: Thu, 19 Dec 91 16:18:45 -0600
From: fogel@jester.usask.ca (Earl Fogel)
Message-Id: <9112192218.AA13421@jester.usask.ca>
To: thorne@Athena.MIT.EDU, tjm@eagle.mit.edu
Subject: Re: TechInfo/DECstation/Curses bug

I've fixed the problem I was having with TechInfo running on a DECstation.
(The first line in each menu was displayed incorrectly).

It turns out there is a bug in DEC's Curses implementation such that
when Curses outputs a tab in the last column of a line, it expects the
cursor to move to the next line, but it doesn't.

Here is a fix to disp.c to solve this problem:

--------------
444,449d443
< 	static void do_redraw_window();
< 
< #ifdef CURSES_AM_BUG		/* Earl Fogel, Dec 9, 1991 */
< 	clear();
< 	do_redraw_window();
< #else
451d444
< #endif
582,586c575
< #ifdef CURSES_AM_BUG		/* Earl Fogel, Dec 9, 1991 */
< 	move(2, 0);
< 	addch(' ');
< 	refresh();
< #endif
---
> 
591,595d579
< #ifdef CURSES_AM_BUG		/* Earl Fogel, Dec 9, 1991 */
< 			move(WIN_TOP + numhead + 1, 0);
< 			addch(' ');
< 			refresh();
< #endif
628,632d611
< #ifdef CURSES_AM_BUG		/* Earl Fogel, Dec 9, 1991 */
< 	move(LINES - 3, 0);
< 	addch(' ');
< 	refresh();
< #endif
---------


Earl Fogel
-------------------------------------------------------------------
fogel@sask.usask.ca		Computing Services, Room 56 Physics
Phone: (306) 966-4861		University of Saskatchewan
Fax:   (306) 966-4938		Saskatoon, Sask. CANADA, S7N 0W0
