Mail Archives: cygwin-developers/1999/05/16/12:51:42
>>> 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 -