X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:subject:mime-version:content-type :content-transfer-encoding:date:from:message-id; q=dns; s= default; b=iflZSNoaFZ8AA4gukF1hcRb6Jnspbt9sImF7JpnFL0vdSMh9slint 4tmXD4JjEctztZWsmoGdVBQDC0Of05sAGaEbB5GrECK9bRVuENDjncY0/MgQUvud fqKHI+CR0QDEJVCYT/8dF+8JJwdxBu+QoHbWzo1iohVC8QZ4qdHlFs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:subject:mime-version:content-type :content-transfer-encoding:date:from:message-id; s=default; bh=l BOe+vHzntJigS24YO4Ylr/tcSw=; b=DC1JZwhJIqLTnhaLFP6Z1UetgPZ7+KBCB zt4s02QhnQQYjIlw/1MguDtMKM7LGDLWcFEigSAEz6/GnPL5uELIkcwo7N2A+sks AcY3QNmBSw/V33zF9kSDFTgWXzUrUZHNht6JhxwXpjLV1/FHjI3FF8486f6NJDrT +HuZILWvqI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-HELO:sk:smtp-ou, H*r:kylheku.com, H*F:D*kylheku.com, Hx-spam-relays-external:sk:smtp-ou X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.2 cv=eo2d9chX c=1 sm=1 tr=0 a=WiYoHcCliNeVponEdG0Ckg==:117 a=WiYoHcCliNeVponEdG0Ckg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=cAmyUtKerLwA:10 a=Lb3q6WuiXuL4JBG7cbAA:9 To: Cygwin Subject: Strange behavior of cmd.exe when hammered with clear screen operations from Cygwin program. X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Tue, 26 Jul 2016 22:19:04 -0700 From: Kaz Kylheku Message-ID: <05e87c9326e8bc9a32a5a3cd2511fe98@mail.kylheku.com> X-Sender: kaz AT kylheku DOT com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4wfBRFkGUjfMLR9yZI6+r4MmqPJBjV5DizCVNX3flaQWiEoJ1fQj+TkQd+590rkO+/RkUTIYu38ns4wVTMxhzJH5HQdDJes5KwJSa3iYD6/S4o+grrxDwd 9s+xRHKpJh06sYwpEW583CAHj+vtO5H0Mef5x0mRX/puJ9uzQ3Z5kAcj Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u6R5JNEl016897 The test program featured below works fine under the Cygwin console window. If executed from a cmd.exe console, strange things happen with the cmd.exe window. Suddenly, the window spontaneously resizes so that is taller than the desktop. A horizontal scrollbar may appear in it also, as well as an unpainted area through which the desktop is visible. As soon as you try to grab the title bar to resize it, it disappears. It hasn't quit; it is actually minimized. You can maximize it from the task bar and then resize the tall window to its original shape. This is using 32 bit Cygwin 2.5.2, on 64 bit Win 7. All the program does is hammer Cygwin's VT100 emulation code with the clear screen escape sequence: ESC [ 2 J. A 1000 iterations are more than enough to reproduce it; I made it 10000. If we change it to 100, some interesting variations occur. It may take multiple runs of the program to reproduce a problem. Then, suddenly, the window might shrink vertically On a subsequent run, it might shrink again. In these situations, it remains susceptible to a manual resize without disappearing. #include int main(void) { int i; for (i = 0; i < 10000; i++) { fputs("\x1b[2J", stdout); fflush(stdout); } return 0; } -- 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