[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Ansi Editing Problem

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Ansi Editing Problem

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Cody Mercer   (2 posts)  [Biography] bio
Date Sat 30 Jun 2012 07:46 PM (UTC)  quote  ]
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?
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 30 Jun 2012 11:20 PM (UTC)  quote  ]
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
[Go to top] top

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

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 01 Jul 2012 07:32 AM (UTC)  quote  ]
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
[Go to top] 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.


671 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]