public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Change for the initial installation of Cygwin to set the default terminal terminal 256 color
@ 2024-04-11 12:36 J M
  2024-04-12  8:05 ` J M
  0 siblings, 1 reply; 5+ messages in thread
From: J M @ 2024-04-11 12:36 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

Hi,

You can change in the initial install setup of Cygwin to set the default
terminal to 256 color as Ubuntu does?

Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change for the initial installation of Cygwin to set the default terminal terminal 256 color
  2024-04-11 12:36 Change for the initial installation of Cygwin to set the default terminal terminal 256 color J M
@ 2024-04-12  8:05 ` J M
  2024-04-12  9:18   ` Lee
  0 siblings, 1 reply; 5+ messages in thread
From: J M @ 2024-04-12  8:05 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

Some examples that I view that can do Cygwin better by default:

tput colors
8

echo $TERM
xterm

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 don't know if I can put screenshots to explain it better.

Regards


El jue., 11 abr. 2024 14:36, J M <cesarjorgemartinez@gmail.com> escribió:

> Hi,
>
> You can change in the initial install setup of Cygwin to set the default
> terminal to 256 color as Ubuntu does?
>
> Regards
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change for the initial installation of Cygwin to set the default terminal terminal 256 color
  2024-04-12  8:05 ` J M
@ 2024-04-12  9:18   ` Lee
  2024-04-12 13:27     ` Thomas Wolff
  0 siblings, 1 reply; 5+ messages in thread
From: Lee @ 2024-04-12  9:18 UTC (permalink / raw)
  Cc: 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


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

Regards,
Lee

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change for the initial installation of Cygwin to set the default terminal terminal 256 color
  2024-04-12  9:18   ` Lee
@ 2024-04-12 13:27     ` Thomas Wolff
  2024-04-12 16:56       ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Wolff @ 2024-04-12 13:27 UTC (permalink / raw)
  To: cygwin



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.
>
> Regards,
> Lee
>
>> El jue., 11 abr. 2024 14:36, J M  escribió:
>>
>>> Hi,
>>>
>>> You can change in the initial install setup of Cygwin to set the default
>>> terminal to 256 color as Ubuntu does?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change for the initial installation of Cygwin to set the default terminal terminal 256 color
  2024-04-12 13:27     ` Thomas Wolff
@ 2024-04-12 16:56       ` Brian Inglis
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Inglis @ 2024-04-12 16:56 UTC (permalink / raw)
  To: cygwin

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-12 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 12:36 Change for the initial installation of Cygwin to set the default terminal terminal 256 color J M
2024-04-12  8:05 ` J M
2024-04-12  9:18   ` Lee
2024-04-12 13:27     ` Thomas Wolff
2024-04-12 16:56       ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).