Updated prompt trigger

September 24, 2008 08:07PM
Some modernisation to the prompt trigger (which splits a prompt and text when CF sends them together in one line).
Now it should stop further trigger processing to avoid double firing for your lazily written triggers :). Pay additional attention to its priority. You would want all your other prompt triggers be higher priority and other trigger be lower priority than this one. I also updated the pattern itself to make it fire less often when you use CF colors.

I can't edit the xml file posted below, so you have to replace the old version manually.
Open CFbase/Prompt class and replace the prompt trigger with this one.
Just open xml tab in the source code editor and replace it with new xml definition. Then save it, open the "script text" tab and replace "ESC" with the real escape char, two instances in the pattern and one instance in the code (copy it from here: )

<table width=100% border=0 bgcolor=yellow><tr><td><tt><pre>
&lt;trigger priority="101" case="true" ansi="true" stop="true" regex="true" id="720"&gt;
&lt;pattern&gt;&lt;![CDATA[(^(ESC\[0[Sm])?&lt;.*\d+.*\d+.*\d+.*&gt; )(?!ESC\[0m$)(.+)$]]&gt;&lt;/pattern&gt;
&lt;value&gt;; Should be high priority, but lower than other prompt triggers
; because it stops further processing
#GAG
#IF (%2 = %null)
{
#PRINT "ESC[0S"%1
}
{
#PRINT {%1}
}
#SHOW %3&lt;/value&gt;
&lt;/trigger&gt;</pre></tt></td></tr></table>



Edited 12 time(s). Last edit at 09/24/2008 08:23PM by Dwoggurd.
Subject Author Posted

CF hightlights for CMUD 2.36

Dwoggurd September 23, 2008 07:45PM

Updated prompt trigger

Dwoggurd September 24, 2008 08:07PM

Hmm not working

torak September 25, 2008 01:28PM

Can't reproduce

Dwoggurd September 25, 2008 02:46PM

By the way

Dwoggurd September 26, 2008 01:33AM

That did it

torak September 26, 2008 12:11PM

Description

Dwoggurd September 23, 2008 08:41PM

CF highlights XML

Dwoggurd September 23, 2008 07:49PM

Feedback

Dwoggurd September 23, 2008 07:46PM

How fucking complicated is CMUD:!?!?!? nt

Graham December 25, 2008 12:34PM

So is this the kind of thing that will work in Mushclient? :-( nt

zen September 25, 2008 03:19AM

Sure, it will work

Dwoggurd September 25, 2008 06:08AM

I have do disagree

Rodriguez September 26, 2008 08:50AM

Fixing SD

Dwoggurd September 26, 2008 09:02AM

Prompt Change

torak September 24, 2008 07:28AM

Prompt trigger vs your triggers

Dwoggurd September 24, 2008 06:55PM

Prompt and your triggers

Dwoggurd September 24, 2008 08:21AM

Didn't you have group chat and tell highlight colors?

torak September 24, 2008 10:06AM

I don't use tell highlights

Dwoggurd September 24, 2008 11:04AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 102
Record Number of Users: 5 November 04, 2022
Record Number of Guests: 358 August 31, 2022