Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: Terminal handling with the 990809 snapshot References: <19990823230825 DOT A18016 AT cygnus DOT com> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Kazuhiro Fujieda Date: 27 Aug 1999 10:17:21 +0900 In-Reply-To: Chris Faylor's message of Mon, 23 Aug 1999 23:08:25 -0400 Message-ID: Lines: 36 X-Mailer: Gnus v5.3/Emacs 19.34 >>> On Mon, 23 Aug 1999 23:08:25 -0400 >>> Chris Faylor 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 * 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 | HOKURIKU School of Information Science o_/ 1990 Japan Advanced Institute of Science and Technology