This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 19990503 snapshot failing to scroll screen


>>> On Wed, 12 May 1999 16:59:14 +0200
>>> Corinna Vinschen <corinna@vinschen.de> said:

> > >pwd displays cleanly when there are empty lines below the prompt in the
> > >window.  When it is typed on the bottom line of the window, there is no
> > >scrolling; the response writes over the command line and the new prompt
> > >writes over that.
> 
> I'm able, to reproduce it:
(snip)
> The effect _only_ happens after resizing the window to,
> say,                80 cols x 30 lines.

This patch can eliminate this problem.

--- fhandler_console.cc-	Tue May 11 12:33:18 1999
+++ fhandler_console.cc	Mon May 17 01:40:34 1999
@@ -18,7 +18,7 @@
 #include <ctype.h>
 
 #define srTop (info.winTop + scroll_region.Top)
-#define srBottom (info.winTop + scroll_region.Bottom)
+#define srBottom ((scroll_region.Bottom < 0) ? info.winBottom : info.winTop + scroll_region.Bottom)
 
 #define use_tty ISSTATE (myself, PID_USETTY)
 
@@ -191,9 +191,6 @@
       info.dwWinSize.X = 80;
       info.winBottom = 24;
     }
-
-  if (scroll_region.Bottom < 0)
-    scroll_region.Bottom = info.dwWinSize.Y - 1;
 
   return ret;
 }

____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]