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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  about OnPluginLineReceived....
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

about OnPluginLineReceived....

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

Posted by Maxhrk   USA  (76 posts)  [Biography] bio
Date Sun 02 Dec 2007 12:34 PM (UTC)
is it possible to find out what color(s) this line has.. from my understanding it probably don't do that, right?
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 02 Dec 2007 07:26 PM (UTC)
When that function is called the line is the last line in the output window (or maybe the last few, if it wraps around, because this is called at a newline, and if it is a long line the "real" line may start a couple of lines back on the screen).

You can use GetLinesInBufferCount to find the number of the last line, and then use GetLineInfo to find how many style runs are in that line. Finally you can use GetStyleInfo to find what colour each style is in.


- 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.


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 FutureQuest]