ansicon
ansicon copied to clipboard
Color theme
Is it possible to change the color theme in ansicon? I don't mean changing the default background color and normal color. I mean when an application prints "blue" how to adjust the shade of blue that is being displayed.
Currently you'd have to go through the console Properties and the Colors tab, but I should be able to add the sequences to define the palette.
I made this screenshot with description to further explain the problems with the default windows dialog (which i think was not made for the capabilities of ansicon)
http://i.imgur.com/Exmv6Ez.png
In the old days, the colours were fixed.
Now rather than thinking of colours think of them as palette entries.
With the console, you can set the physical colour to whatever you want and then the that colour will be displayed as required.
You can set both the default properties (affecting all subsequent launches of console) or the ones for this instance of the console.
If you create a shortcut, you can set that shortcut's colours.
On 28 March 2014 08:42, flip111 [email protected] wrote:
I made this screenshot with description to further explain the problems with the default windows dialog (which i think was not made for the capabilities of ansicon)
http://i.imgur.com/Exmv6Ez.png
— Reply to this email directly or view it on GitHubhttps://github.com/adoxa/ansicon/issues/69#issuecomment-38898160 .
Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY
I think i found the palette settings in the registry editor under HKEY_CURRENT_USER\Console then there should be REG_DWORDs with names like ColorTable00, ColorTable01, etc ..
Perhaps ansicon could read the palette from a configuration file and change the registry?
Note that each shortcut to cmd.exe can set it's own color palette they are found in sub-folders.
Source: http://superuser.com/a/429243
You're really talking about a console issue, not an ANSICON issue. You've got a dialog to change the colors, what's stopping you from using that? Admittedly, it is very clunky, as it seems you have to select the color first, change the RGB values (try 60/140/210 for your blue), select the color again (to move focus from RGB to avoid inadvertently changing another color), then (re)set the color for the selected item. But you only have to do it once, then every "PsySH" console will have those colors (other console windows remain unaffected). ANSICON would only do it via a sequence, so you'd have to set it up to echo that first (assuming PsySH itself is not setting a palette).
As an aside, what's that extra button you have on your captions?
I think you are partially right. But since the console never was intended to be used like this the clunky dialog never was a problem before. Therefor it would be a nice addition if ansicon would facilitate something to get more of the full potential out of it. However if you don't find that feasible i would very well understand, you can close the issue in this case ...
The extra button is to move the window to my second monitor instantly, it's added by DisplayFusion (which i like most for the additional taskbar on the second monitor).
I'll not be adding custom application palettes to ANSICON - that's what the Properties are for. I shall add the sequence to set the palette - e.g. ansicon -e ^[]4;4;60,140,210^[\ will change blue (ANSI index, not Windows; the second 4 as 12 would change bold blue).
Hey that's great thank you !
Hello. Am I right in thinking the above-mentioned color palette functionality is not implemented in 1.66? I've tried the above example but "-e" is an existing command with another function, so nothing relevant happens.
Sorry, no, I never got around to it. In the interim, I just whipped up this program to do it, using Windows indices (e.g. conpal 1=60,140,210 to change blue).
Oh, thank you. I will try this out. I am trying to make a rather colorful ANSI artwork look true-to-editor when displayed by a .bat file, but have found the Win10 cmd color palette to be quite far off what I expected.
I finally had more time to work on my ANSI logo project. I used a program called Playscii to convert the source PNG into ANSI, but getting the .ans to show accurate colors in Win10 cmd prompt was more challenging. That's where your conpal.exe came in, and it worked great. Here's an image showing the progress from bad win10 colors to pretty solid rendering.
i.imgur.com/r3nA0Zt.png
Thanks again!
You might like to try the original ANSI in mintty or conemu, as they offer more colors; the console is stuck with 16. Are you a color or two short? I guess 15 could be reserved for white, but why no 8?
BTW, conpal will process more than one color on the command line.
Oh, thanks for the conpal tip.
The lack of color 8 has to do with the process through which I arrived at my final .ans file. Basically the program I used to translate my .png to .ans did not use color 8 of my custom-made palette; therefore I did not have to correct it with conpal.
I am happy with 16 colors. This streaming project has a retro angle; I'm using stream-visible batch files and the no-frills DOS-like source port Chocolate Doom, so the retro chunkiness is part of the aesthetic. :)
v1.80 can set the palette. I'll also point out that Win10 supports RGB colors directly.