delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/05/16/12:51:42

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Sender: fujieda AT elbereth DOT jaist DOT ac DOT jp
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: 19990503 snapshot failing to scroll screen
References: <17747b27 DOT 2468e261 AT aol DOT com> <19990510213712 DOT F28827 AT cygnus DOT com>
<37399742 DOT 556FEA42 AT vinschen DOT de>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 17 May 1999 01:51:00 +0900
In-Reply-To: Corinna Vinschen's message of Wed, 12 May 1999 16:59:14 +0200
Message-ID: <s1saev53qmj.fsf@jaist.ac.jp>
Lines: 41
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Wed, 12 May 1999 16:59:14 +0200
>>> Corinna Vinschen <corinna AT vinschen DOT 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 AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019