Re: White fg color, black bg color, though terminal is opposite in MSYS2

Ivan Vorontsov <[email protected]> Thu, 3 Oct 2024 21:38:40 +0300
Newsgroups gmane.editors.nano.general
Message-ID <Zv7ksKpAHugYqOaZ@DESKTOP-97PAREG>
On Thu, Oct 03, 2024 at 05:32:05PM +0200, Benno Schulenberg wrote:
> 
> Op 02-10-2024 om 21:23 schreef Ivan Vorontsov:
> > Mintty and ncurses are upgraded as well. So, I decided to downgrade ncurses
> > first and it worked. I suppose that's it.
> 
> You might want to report this to bug-ncurses.
> Or better: first to MSYS2.

Will do.
 
> > > What is TERM set to by default in mintty?
> > 
> > xterm
> 
> If you have a terminfo description for mintty (mine is at
> /usr/share/terminfo/m/mintty), then you could try setting
> TERM=mintty.
> 
> Running `infocmp xterm-256color mintty` shows some differences,
> so a mintty is as capable as an xterm:
> 
> comparing xterm-256color to mintty.
>     comparing booleans.
> 	km: T:F.
>     comparing numbers.
>     comparing strings.
> 	ka1: '\EOw', NULL.
> 	ka3: '\EOy', NULL.
> 	kb2: '\EOu', NULL.
> 	kbeg: '\EOE', NULL.
> 	kc1: '\EOq', NULL.
> 	kc3: '\EOs', NULL.
> 	nel: '\EE', NULL.
> 	rmm: '\E[?1034l', NULL.
> 	rmpch: NULL, '\E[10m'.
> 	rshm: NULL, '\E[22m'.
> 	rsubm: NULL, '\E[75m'.
> 	rsupm: NULL, '\E[75m'.
> 	smm: '\E[?1034h', NULL.
> 	smpch: NULL, '\E[11m'.
> 	sshm: NULL, '\E[1:2m'.
> 	ssubm: NULL, '\E[74m'.
> 	ssupm: NULL, '\E[73m'.
> 

Mintty has setting for terminal type. The values are xterm, xterm-256color,
vt100, vt220, vt525, mintty, and few variations of listed. I tried them
all, only vt ones worked. I chose vt525 as I wrote. But now I'll use
downgraded ncurses till, I hope, the issue will be resolved.