The Cygwin native terminal emulator `mintty` is supported by Cygwin default `ncurses`/`terminfo` installs:

$ TERM=mintty tput colors
256

On 2024-04-12 07:27, Thomas Wolff via Cygwin wrote:
Am 12.04.2024 um 11:18 schrieb Lee via Cygwin:
On Fri, Apr 12, 2024 at 4:05 AM J M  wrote:
Some examples that I view that can do Cygwin better by default:

tput colors
8

echo $TERM
xterm
I made my mintty changes by point & click experimentation - if you
want to make system-wide changes the place to do that is in
/etc/minttyrc
   https://github.com/mintty/mintty/wiki/Tips
   Configuring mintty
   For its configuration, it reads configuration files in this order:
       /etc/minttyrc
       ... etc.

$ grep -i term .minttyrc
Term=xterm-256color

$ tput colors
256

$ echo $TERM
xterm-256color

Note that mintty always supports all modes, including 256 colours and
true-color (TERM=xterm-direct), regardless of the TERM setting or the
$TERM environment value. That value is only used by some applications
(like tput and apparently vim) as an indication which features to use.
Thomas

And if use vim, comparing with one Ubuntu terminal:

I need to set "set mouse-=a" because the copy paste is difficult.
The colors are very bright.
The cursor does not look good when doing a search and moves over the yellow
background text.

What settings would I need to make it look like Ubuntu's vim?
I'd suggest doing a 'man vim' to find out where all the possible
configuration files are & then copy them to your cygwin machine.

El jue., 11 abr. 2024 14:36, J M  escribió:
You can change in the initial install setup of Cygwin to set the default
terminal to 256 color as Ubuntu does?

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                -- Antoine de Saint-Exupéry


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

Reply via email to