[comp.windows.news] Bug-fix for psterm

aida@porthos.csl.sri.com (Hitoshi Aida) (11/12/88)

The behavior of automatic scrolling in psterm (terminal emulator in NeWS)
is not correct after setting scroll region.  Here is fix.

*** tcap_ops.c	Fri Nov 11 16:55:46 1988
--- tcap_ops.c.org	Mon Feb 22 11:00:55 1988
***************
*** 1101,1110 ****
  	    return;
  	}
      }
!     if (Dot.y == BottomLineOfScrollRegion)
! 	sf_op(t);
!     else if (Dot.y < LinesPerScreen - 1)
  	Dot.y++;
      MoveCursor();
  }
  
--- 1101,1111 ----
  	    return;
  	}
      }
!     if (Dot.y < LinesPerScreen - 1)
  	Dot.y++;
+     else {
+ 	sf_op(t);
+     }
      MoveCursor();
  }
  
--------
Hitoshi AIDA (aida@csl.sri.com)
Computer Science Laboratory, SRI International