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: Terminal handling with the 990809 snapshot


>>> 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

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