delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/02/18:53:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <32579698.post@talk.nabble.com>
Date: Sun, 2 Oct 2011 15:53:06 -0700 (PDT)
From: "jan.kolar" <kolar AT math DOT cas DOT cz>
To: cygwin AT cygwin DOT com
Subject: Re: pressing ENTER scrambles scrolled MS-DOS-console
In-Reply-To: <000c01cc7c46$615cd310$24167930$@de>
MIME-Version: 1.0
References: <000c01cc7c46$615cd310$24167930$@de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


Paul Maier-2 wrote:
> 
> Hi,
> 
> scrolling up the console output to review the console history, then
> pressing
> Enter scrambles the console.
> 
> This is Cygwin-specific: The same steps with Windows' cmd instead of bash
> is working fine.
> 
> 
> To reproduce:
> 
> 1. Open Windows MS-DOS console, then start bash or tcsh or another shell.
> 2. Enter something like ls to fill the screen
> 3. scroll up
> 4. press Enter
> 
> 
> Observed behaviour:
> - The command prompt and any subsequent command is printed *inside* the
> old 
>   console output. Current command line is full of old console stuff.
>   (See screen shot in the attachment.)
> - Not possible to repair this by manually repositioning the cursor to the
> end. 
>   Scrolling down is possible, but pressing another Enter will scroll *up*
> to 
>   the scrambled position. The only way to get the cursor down is to
> pressing 
>   Enter for 1000 times, but the console output will be basically
> overwritten 
>   by these 1000 command prompts.
> -> Result: Loss of the console; need to type exit and open a new window.
> 
> 
> Expected behaviour:
> - I expect the terminal to automatically scroll all the way down to the
>   latest line before printing any new characters.
> 
> 
> Further details - This works:
> - Pressing any other key (e. g. letter a) does scroll the terminal down.
> - Pressing arrow up (to review the command history) does scroll the
> terminal down.
> - Inside bash, type "cmd" to start a Windows cmd. The console behaves
> immediately 
>   fine.
> - bash in xterm works fine.
> 
> 
> Further details - Does not work:
> - enter "echo ABC", do not press enter, but scroll up, then press enter.
>   "ABC" will print into the old console output followed by the command
> prompt.
>   (See screen shot in the attachment.)
> 
> 
> Thank you.
> 
> Paul.
> 
> 


I confirm the problem.
However, I cannot reproduce that, in your or any other way.

I get scrambled console irregularly and unexpectedly, mainly when a program
prints output 
when the console is scrolled or being scrolled.

JK
-- 
View this message in context: http://old.nabble.com/pressing-ENTER-scrambles-scrolled-MS-DOS-console-tp32539946p32579698.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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