Prompt wrapping lines problems

L A Walsh cygwin@tlinx.org
Sat Oct 9 13:41:53 GMT 2021



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



More information about the Cygwin mailing list