ilivit / mintty

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

Changing options from command line #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to have different background colours depending on my host 
computer. Unfortunately, unless I am mistaken, mintty only allows changing of 
the 16 ANSI colours from the command line (using escape sequences.) Can a 
similar method be implemented to also change the background colour? (And 
eventually the other options as well.)

Thank you!

Original issue reported on code.google.com by Geoffrey...@gmail.com on 26 Jul 2010 at 4:28

GoogleCodeExporter commented 9 years ago
The xterm sequence for this is supported, e.g.:

echo -ne '\e]11;#400040\a'

Replace 11 with 10 for the foreground and 12 for the cursor. And the sequence 
for changing the ANSI colours can also change the rest of the 256 colour 
palette.

See also http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

Original comment by andy.koppe on 26 Jul 2010 at 5:33

GoogleCodeExporter commented 9 years ago
Any way to use this when using ksh? (pdksh.exe)

It worked with bash, but not with ksh, maybe is just as easy as using a 
different flag in echo, but I don't know.

Thanks

Original comment by onyx...@gmail.com on 24 May 2011 at 3:17

GoogleCodeExporter commented 9 years ago
Nevermind. Found the way using a simple sh script.

Thanks anyways

Original comment by onyx...@gmail.com on 24 May 2011 at 3:58

GoogleCodeExporter commented 9 years ago
That sounds like unnecessary overhead. Try replacing the \e with \033, because 
I think the \e is a GNU extension not supported by ksh.

Original comment by andy.koppe on 24 May 2011 at 7:48