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
➜ ColourNote and logging
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Isntinuse
(3 posts) Bio
|
| Date
| Tue 02 May 2006 01:33 AM (UTC) |
| Message
| I have a good number of ColourNotes in my scripts, and while they work fine in the output they aren't showing up in the html log. I could write a wrapper for ColourNote and call WriteLog, but it'd be a major pain to generate the HTML codes for the colour by hand. Normal Notes log fine, and the ColourNotes also work fine if using the 'Copy as HTML' feature.
Is there a better way to get this working - preferably so the final log looks the same as the output? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 02 May 2006 07:51 AM (UTC) |
| Message
| | I don't seem to be able to reproduce this. With "logging notes" enabled in the logging preferences, my colour notes are appearing. What version are you using? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Isntinuse
(3 posts) Bio
|
| Date
| Reply #2 on Tue 02 May 2006 08:14 AM (UTC) |
| Message
| Correction: Looking at the script I seem to be using ColourTell, not ColourNote. Slight difference ;)
It's version 3.66. In logging preferences I have 'Log Output', 'Log Commands', 'Log Notes', 'HTML', and 'Colour' checked but not 'Raw'. Normal notes show up fine | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 02 May 2006 08:40 AM (UTC) |
| Message
| OK, ColourTell does a partial line (that is, doesn't terminate it), so can you clarify how you eventually terminate the line which you are doing ColourTell to?
Preferably you should follow the last ColourTell by a simple Note (""), which simply terminates the line (starts a new one). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Isntinuse
(3 posts) Bio
|
| Date
| Reply #4 on Tue 02 May 2006 08:54 AM (UTC) |
| Message
| | I was simply not terminating the line, since in the place it was firing it the server was always due to send a blank line. With a call to Note("") after the ColourTell()s it seems to work all right. Strange that it looks fine in output even without the Note(""). | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Tue 02 May 2006 09:13 AM (UTC) |
| Message
| | So, in one sense, the problem is resolved? However it seems a bug of some sort. The documentation for ColourNote says the extra Note isn't really required, however it appears it is. |
- 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.
17,404 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top