Closed GoogleCodeExporter closed 8 years ago
The 16 ANSI colours (and also the rest of the 256 supported colours) can be
changed
using the relevant xterm control sequence. From the mintty 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"
Original comment by andy.koppe
on 6 Nov 2009 at 7:11
there is a perl script for that
conpalette
Original comment by leventd...@gmail.com
on 7 Nov 2009 at 7:44
URL? CPAN?
thanks for the hint though...I can probably write a perl script, though setting
values through use of 'hex-only', doesn't quite provide the ease of visual
feedback,
though it's probably superior for setting values once you know what they are.
Original comment by min...@tlinx.org
on 8 Nov 2009 at 12:37
Would you like to see support for comma-separated decimal values in the colour
setting sequence?
Original comment by andy.koppe
on 8 Nov 2009 at 6:39
I'm using this script to switch tango theme.
http://search.cpan.org/dist/App-ConPalette/script/conpalette
Original comment by leventd...@gmail.com
on 8 Nov 2009 at 1:16
Original comment by andy.koppe
on 10 Nov 2009 at 7:30
Implemented decimal colour values in colour OSC sequences in r686 on 0.5 branch.
Example: echo $'\e]10;255,255,0\a' to set foreground colour to saturated yellow.
Original comment by andy.koppe
on 26 Dec 2009 at 9:22
Original comment by andy.koppe
on 28 Dec 2009 at 2:15
Original issue reported on code.google.com by
min...@tlinx.org
on 6 Nov 2009 at 6:50