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
➜ Colorized Prompt Triggers
|
Colorized Prompt Triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Desert_Wanderer
(5 posts) Bio
|
| Date
| Wed 23 Jul 2003 08:55 PM (UTC) |
| Message
| Ok, think I'm missing something here. I'm trying to set my triggers so that as my prompt stats change, I can see where I'm at with a glance by color. Example:
163/163hp 177/177Sta 89/89stun>
These stats are min/max(type), I'll use the stun setting as an example. If my stun is from say 0-25 its colored purple, 26-60 is red, 61-80 yellow, and 81+ its normal green.
Here is the trigger I am using for 61-80 stun:
</trigger>
<trigger
custom_colour="17"
enabled="y"
ignore_case="y"
match="[6-8]./89stun"
regexp="y"
sequence="100"
other_text_colour="yellow"
other_back_colour="black"
The problem I am having is that portion of the prompt line does not change color until after I put in a command, or something happens in the game.
Am I missing some prompt or newline setting or something?
Thanks in advance.
-DW | | Top |
|
| Posted by
| Shadowfyr
USA (1,792 posts) Bio
|
| Date
| Reply #1 on Wed 23 Jul 2003 09:29 PM (UTC) |
| Message
| | Mushclient had no idea what a prompt is or any way to tell when one actually arrives. No one thought it was important to bother with adding such a function to ANSI back when it came out, since it was originally used for static, non-moving text. As a result, Mushclient can only color a line after it is 100% certain that the line is complete. This means it needs a command to be entered or some mud side event to generate a new line before it will do anything. Some muds will allow you to change your prompt to add a newline character to it, but that is really the only solution to the problem until and unless some special method of defining such prompts and treating them different from normal lines is implimented. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Wed 23 Jul 2003 10:09 PM (UTC) |
| Message
| |
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Wed 23 Jul 2003 10:10 PM (UTC) |
| Message
| | Another approach, as Shadowfyr said, is to modify your prompt at the MUD side to include a newline. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Desert_Wanderer
(5 posts) Bio
|
| Date
| Reply #4 on Thu 24 Jul 2003 08:02 PM (UTC) |
| Message
| Thanks. That worked! Just added a newline at the end of my prompt.
-DW | | 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.
19,097 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top