public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mintty shows some text in other than foreground color
@ 2016-09-15 21:04 David Karr
  2016-09-15 21:07 ` Andrey Repin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Karr @ 2016-09-15 21:04 UTC (permalink / raw)
  To: cygwin

When I run mintty, the background is white, and normal text is black.
This is fine.  However, there are some applications that are
displaying text in other colors, many of which are fine, but some apps
display some text in yellow, which on a white background is almost
unreadable.

For instance, the display from Cassandra's "cqlsh" shows the results
of queries in black, purple (probably not quite right), and yellow.
The worst part is, it's using yellow for the column values.

Is there any way to control this, in general (obviously, not just for
cqlsh output)?

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

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

* Re: mintty shows some text in other than foreground color
  2016-09-15 21:04 mintty shows some text in other than foreground color David Karr
@ 2016-09-15 21:07 ` Andrey Repin
  2016-09-16 13:21 ` Brian Inglis
  2016-09-16 13:48 ` James Darnley
  2 siblings, 0 replies; 6+ messages in thread
From: Andrey Repin @ 2016-09-15 21:07 UTC (permalink / raw)
  To: David Karr, cygwin

Greetings, David Karr!

> When I run mintty, the background is white, and normal text is black.
> This is fine.  However, there are some applications that are
> displaying text in other colors, many of which are fine, but some apps
> display some text in yellow, which on a white background is almost
> unreadable.

> For instance, the display from Cassandra's "cqlsh" shows the results
> of queries in black, purple (probably not quite right), and yellow.
> The worst part is, it's using yellow for the column values.

> Is there any way to control this, in general (obviously, not just for
> cqlsh output)?

Piping results through some other program usually cause origin program to not
install color codes.
For a more specific solutions, look into each program's documentation.


-- 
With best regards,
Andrey Repin
Thursday, September 15, 2016 23:57:56

Sorry for my terrible english...


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

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

* Re: mintty shows some text in other than foreground color
  2016-09-15 21:04 mintty shows some text in other than foreground color David Karr
  2016-09-15 21:07 ` Andrey Repin
@ 2016-09-16 13:21 ` Brian Inglis
  2016-09-16 13:48 ` James Darnley
  2 siblings, 0 replies; 6+ messages in thread
From: Brian Inglis @ 2016-09-16 13:21 UTC (permalink / raw)
  To: cygwin

On 2016-09-15 14:47, David Karr wrote:
> When I run mintty, the background is white, and normal text is black.
> This is fine.  However, there are some applications that are
> displaying text in other colors, many of which are fine, but some apps
> display some text in yellow, which on a white background is almost
> unreadable.
>
> For instance, the display from Cassandra's "cqlsh" shows the results
> of queries in black, purple (probably not quite right), and yellow.
> The worst part is, it's using yellow for the column values.
>
> Is there any way to control this, in general (obviously, not just for
> cqlsh output)?

See
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Controls

Normal ANSI escapes start with CSI 0x9b or \e[, these start with OSC 0x9d or \e],
and end with ST 0x9c or \e\\, or BEL ctrl-G, 0x07 or \a.

See Ps = 4 ; c ; spec → Change colour c to colour spec, a standard xterm RGB
colour word or hex code; the ; c ; spec sequences may be repeated as many times
as required before the ST, e.g. for up to 256 colours.
See also Ps = 10 default foreground colour and 11 default background colour
if you need to temporarily invert the default background and foreground colours,
e.g to display curl wttr.in[/CityName] in a normally white window background:

#!/bin/bash
# wttr.sh - ANSI colour text weather forecast for IP address or city
echo -ne '\e]10;white\e\\'
echo -ne '\e]11;black\e\\'
curl wttr.in
sleep 5
echo -ne '\e]10;black\e\\'
echo -ne '\e]11;white\e\\'

as the colours just don't work without the black background.
N.B. The OSC sequences do not appear to be supported by man or less.

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

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

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

* Re: mintty shows some text in other than foreground color
  2016-09-15 21:04 mintty shows some text in other than foreground color David Karr
  2016-09-15 21:07 ` Andrey Repin
  2016-09-16 13:21 ` Brian Inglis
@ 2016-09-16 13:48 ` James Darnley
  2016-09-16 15:48   ` David Karr
  2016-09-16 20:52   ` Thomas Wolff
  2 siblings, 2 replies; 6+ messages in thread
From: James Darnley @ 2016-09-16 13:48 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 942 bytes --]

On 2016-09-15 22:47, David Karr wrote:
> When I run mintty, the background is white, and normal text is black.
> This is fine.  However, there are some applications that are
> displaying text in other colors, many of which are fine, but some apps
> display some text in yellow, which on a white background is almost
> unreadable.
> 
> For instance, the display from Cassandra's "cqlsh" shows the results
> of queries in black, purple (probably not quite right), and yellow.
> The worst part is, it's using yellow for the column values.
> 
> Is there any way to control this, in general (obviously, not just for
> cqlsh output)?

Set Mintty's yellow colour to be something legible against your chosen
background colour.

(Come to think of it, I should rebase my old GUI colour selection patch.
 I probably should update Mintty anyway.  But all that would require
effort.)

P.S.  Sorry about mailing you directly David.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]

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

* Re: mintty shows some text in other than foreground color
  2016-09-16 13:48 ` James Darnley
@ 2016-09-16 15:48   ` David Karr
  2016-09-16 20:52   ` Thomas Wolff
  1 sibling, 0 replies; 6+ messages in thread
From: David Karr @ 2016-09-16 15:48 UTC (permalink / raw)
  To: cygwin

I've managed to resolve this.  I turned off color output in the cqlsh
config file. It doesn't provide a way that I can see to configure the
colors that are used, and black works perfectly fine for me.

On Fri, Sep 16, 2016 at 6:46 AM, James Darnley <james.darnley@gmail.com> wrote:
> On 2016-09-15 22:47, David Karr wrote:
>> When I run mintty, the background is white, and normal text is black.
>> This is fine.  However, there are some applications that are
>> displaying text in other colors, many of which are fine, but some apps
>> display some text in yellow, which on a white background is almost
>> unreadable.
>>
>> For instance, the display from Cassandra's "cqlsh" shows the results
>> of queries in black, purple (probably not quite right), and yellow.
>> The worst part is, it's using yellow for the column values.
>>
>> Is there any way to control this, in general (obviously, not just for
>> cqlsh output)?
>
> Set Mintty's yellow colour to be something legible against your chosen
> background colour.
>
> (Come to think of it, I should rebase my old GUI colour selection patch.
>  I probably should update Mintty anyway.  But all that would require
> effort.)
>
> P.S.  Sorry about mailing you directly David.
>

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

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

* Re: mintty shows some text in other than foreground color
  2016-09-16 13:48 ` James Darnley
  2016-09-16 15:48   ` David Karr
@ 2016-09-16 20:52   ` Thomas Wolff
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Wolff @ 2016-09-16 20:52 UTC (permalink / raw)
  To: cygwin

Hi James,
> On 2016-09-15 22:47, David Karr wrote:
>> When I run mintty, the background is white, and normal text is black.
>> This is fine.  However, there are some applications that are
>> displaying text in other colors, many of which are fine, but some apps
>> display some text in yellow, which on a white background is almost
>> unreadable.
>>
>> For instance, the display from Cassandra's "cqlsh" shows the results
>> of queries in black, purple (probably not quite right), and yellow.
>> The worst part is, it's using yellow for the column values.
>>
>> Is there any way to control this, in general (obviously, not just for
>> cqlsh output)?
> Set Mintty's yellow colour to be something legible against your chosen
> background colour.
>
> (Come to think of it, I should rebase my old GUI colour selection patch.
>   I probably should update Mintty anyway.  But all that would require
> effort.)
Mintty has meanwhile support for colour schemes ("themes") and 
cooperates with the Color Scheme Designer for that purpose, which I 
consider an excellent solution and easier to use than individual colour 
configuration.

Thomas

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

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

end of thread, other threads:[~2016-09-16 19:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 21:04 mintty shows some text in other than foreground color David Karr
2016-09-15 21:07 ` Andrey Repin
2016-09-16 13:21 ` Brian Inglis
2016-09-16 13:48 ` James Darnley
2016-09-16 15:48   ` David Karr
2016-09-16 20:52   ` Thomas Wolff

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