-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I change the default font color? #76
Comments
I'm not sure what you mean. The default for text is non-bold white, which is a gray colour. What do you mean about white turning green? |
I hope the default text will turn green, and the other colors will not be changed. |
For example, I changed gray to dark green and white to bright green, but in this way, the colored characters that were originally supposed to output white and gray turned green. |
OK, I see what you mean now. You want the default colour to be different from low-intensity white. You can achieve that by installing the following plugin, which detects ESC[0m (the ANSI code for return to default colours) and appends to it with ESC[38;5;46m which is a 256-ANSI colour code for green.
You can choose the exact colour you want as the default colour from this chart: I chose 46 however you could choose, say, 22, 34, or 40 which are different shades of green. This plugin works by modifying incoming packets and adding the extra ANSI code for green after it receives an ANSI reset. It won't work if the colour code spans multiple packets, but see if this works for you. To install it, save the code part above as "Make_Default_Colour_Green.xml" and put that in your MUSHclient world/plugins folder. Then use the File menu to install that particular plugin. |
Thank you. After I installed it and enabled it, it displayed 'yes', but the default font is still gray. I restarted mushclient5.06 and it's still the same, I don't know why? Enabled plugin Make_Default_Colour_Green (a2888f9cacf9f9d52608105e) |
We need to figure out what the MUD is sending.
For example:
We should see ESC[0m in the packet as I illustrate above. Make sure you indicate what part of your text you expect to see in the default colour. In my example above I expect the prompt ("<24/24 hp 14 ...") to be in the default colour. If we do, then my plugin should have worked. If not, well, we will cross the bridge when we come to it. |
Just move that 'T' up there, I want to change it to green.
If you change white and gray, the original white will also turn green.
I hope the next version has this feature, thank you.
The text was updated successfully, but these errors were encountered: