csersoft / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Predefined sets of colour settings #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There could be a small choice of predefined sets of colour settings, e.g.:

- white on black (default)
- black on white (xterm-style)
- green on black (retro)
- yellow on blue (rxvt)
- System colours (reads Windows settings)

Original issue reported on code.google.com by andy.koppe on 9 May 2009 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 27 May 2009 at 6:36

GoogleCodeExporter commented 9 years ago
Would be better if user can configure the whole set of terminal color.
Originally, I use rxvt in cygwin, which allow the setting done via .Xdefaults.

Original comment by zar...@gmail.com on 22 Oct 2009 at 6:24

GoogleCodeExporter commented 9 years ago
You can, using control sequences. From the manual:

   Changing the ANSI colours
       A number of settings can be controlled through terminal control
       sequences, including the colour values for the 16 ANSI colours.  Here
       is the xterm sequence for this, whereby num stands for the ANSI number
       and rrggbb stands for a hexadecimal RGB colour value.

              ^[]4;num;#rrggbb^G

       The -e option to the echo command is useful for emitting control
       sequences.  For example, to turn yellow (colour 3) up to its full
       brightness:

              echo -e "\e]4;3;#FFFF00\a"

       Sequences such as this can be included in scripts or on the mintty com-
       mand line with the help of sh -c.

Original comment by andy.koppe on 22 Oct 2009 at 6:34

GoogleCodeExporter commented 9 years ago
alright, this is suffix for my needs :)
I think this issue can be closed.

Original comment by zar...@gmail.com on 22 Oct 2009 at 9:10

GoogleCodeExporter commented 9 years ago
Hmm, yep, those predefined colour schemes wouldn't add much, given that picking 
the 
foreground, background and cursor colours is straightforward enough.

Original comment by andy.koppe on 4 May 2010 at 5:49