Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Ansi Editing Problem

Ansi Editing Problem

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Cody Mercer   (2 posts)  Bio
Date Sat 30 Jun 2012 07:46 PM (UTC)
Message
Hello,

I'm currently building on my project ( I don't do the coding ) but we added 256 ansi recently and I can't really read dark colors good and whenever I try to switch the color to a lighter color it doesn't change? I think it's because I can only edit the 8 colors.. actually I don't really have a clue.. could someone help me?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 30 Jun 2012 11:20 PM (UTC)
Message
You could add some MapColour calls to your world initialization to remap the way some colours are displayed ...

Template:function=MapColour MapColour

The documentation for the MapColour script function is available online. It is also in the MUSHclient help file.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cody Mercer   (2 posts)  Bio
Date Reply #2 on Sun 01 Jul 2012 02:21 AM (UTC)
Message
I know you must think I'm a retard, hah. I don't have a clue what you're saying to me.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 01 Jul 2012 07:32 AM (UTC)
Message
MUSHclient can replace one colour with another, as it is writing to the screen. This is controlled by the MapColour scripting function. You would need to find the annoying colour(s) to work out its exact RGB components.

You can do this by selecting an example in the output window, go to Display menu -> Text Attributes and then you will see the RGB code (eg. "#0080FF").

Then you can script something like:


MapColour (ColourNameToRGB ("#0080FF"), ColourNameToRGB ("green"))


And ditto for other colours.

Put that line (and the others) into an alias, have the alias "send to script" and call the alias each time you log in. eg. make the alias "fixcolour", like this:


<aliases>
  <alias
   match="fixcolour"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>

MapColour (ColourNameToRGB ("#0080FF"), ColourNameToRGB ("green"))


</send>
  </alias>
</aliases>


Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,203 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.