Terminal handling with the 990809 snapshot
Kazuhiro Fujieda
fujieda@jaist.ac.jp
Thu Aug 26 18:17:00 GMT 1999
>>> On Mon, 23 Aug 1999 23:08:25 -0400
>>> Chris Faylor <cgf@cygnus.com> said:
> The easiest way to duplicate this is, while in a shell, scroll up a
> couple of pages using a scroll bar and then hit enter. The cursor will
> not jump back to the bottom of the screen, as it should. Instead,
> you'll get a prompt in the middle of the screen somewhere and future
> scrolling will include stuff you've already seen.
>
> Any ideas for fixing this?
The following small patch can fix this.
ChangeLog:
==========
Tue Aug 24 10:46:24 1999 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* fhandler_console.cc (write_normal): Write '\n' corresponding to
DWN if the cursor is out of the window.
--- fhandler_console.cc- Tue Aug 24 10:46:24 1999
+++ fhandler_console.cc Fri Aug 27 09:30:12 1999
@@ -987,7 +987,7 @@ fhandler_console::write_normal (const un
break;
case DWN: /* WriteFile("\n") always adds CR... */
cursor_get (&x, &y);
- if (y == srBottom)
+ if (y >= srBottom)
{
if (y < info.winBottom || scroll_region.Top)
{
____
| AIST Kazuhiro Fujieda <fujieda@jaist.ac.jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology
More information about the Cygwin-developers
mailing list