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

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Color in Current_Output_Window plugin

Color in Current_Output_Window plugin

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

Posted by Symple   (6 posts)  [Biography] bio
Date Sat 04 Apr 2020 08:23 PM (UTC)
How would I go about changing the current output to retain the asci colors from the original output? I've tried and all I can seem to do is change the overall colors. I looked around the forums but couldn't find anything related and tried to look at the code from the Generic_Chat_Miniwindow.xml but am unclear where to go from here. I am still learning this stuff so any help would be appreciated!
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Sat 04 Apr 2020 10:08 PM (UTC)
The function in Generic_Chat_Miniwindow.xml responsible for printing colored text to the miniwindow is called Display_Line. You can find it at https://github.com/nickgammon/plugins/blob/master/Generic_Chat_Miniwindow.xml#L322-L343

Unluckily, the Current_Output_Window plugin does not appear to preserve the style information for lines.

But if you're intrepid, I made something better for my Aardwolf MUSHclient package using my own custom miniwindow text library. If you want to peek at it, the code is here https://github.com/fiendish/aardwolfclientpackage/blob/MUSHclient/MUSHclient/worlds/plugins/aard_splitscreen_scrollback.xml

[Go to top] top

Posted by Symple   (6 posts)  [Biography] bio
Date Reply #2 on Sat 04 Apr 2020 10:33 PM (UTC)
Thank you so much! This looks to be pretty much what I was trying to replicate.
[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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]