delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/10/09/09:43:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 00A4E385840A
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=tlinx.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tlinx.org
Message-ID: <61619C21.2030809@tlinx.org>
Date: Sat, 09 Oct 2021 06:41:53 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: jp <jpcleev AT yahoo DOT fr>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Prompt wrapping lines problems
References: <1138844908 DOT 4160788 DOT 1633516517585 DOT ref AT mail DOT yahoo DOT com>
<1138844908 DOT 4160788 DOT 1633516517585 AT mail DOT yahoo DOT com>
<6160D6CA DOT 9000800 AT tlinx DOT org> <919866450 DOT 1283857 DOT 1633765090246 AT mail DOT yahoo DOT com>
In-Reply-To: <919866450.1283857.1633765090246@mail.yahoo.com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>


On 2021/10/09 00:38, jp wrote:
> 
> 
> I'm very happy that you respond me. Yes, I've tried the solution 
> suggested but I didn't succeed, but it doesn't matter now, because I've 
> installed and old version of cygwin.
> 
> Theese are the result of the command, but it will not help you because 
> it comes from the old version of cygwin and not from the new one 
> containing the bug.
> 
> 
> $ echo "$TERM"
> xterm
> 
> me AT me ~
> $ stty -a
> speed 38400 baud; rows 22; columns 191; line = 0;

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>^^^>...That's awfully wide!!!
normally you use 80 charcaters wide -- and the terminal you showed looked
more like 80 characters, than 191.

Bash may not be wrapping until 191, 

try setting columns to 80 (stty cols 80)
and making sure your stty -a shows the same columns
as your '$LINES' variable.

About COLUMNS, I see:
 COLUMNS
 Used by the select compound command to  determine  the  terminal
 width  when  printing selection lists.  Automatically set if the
 checkwinsize option is enabled or in an interactive  shell  upon
 receipt of a SIGWINCH.
----
	This suggests that it might be necessary to have the checkwinsize
variable set, since if you change the size of your bash window, it won't
have anyway of knowing if that option is off


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

- Raw text -


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