Page 1 of 1

Powwow Action triggering on Twiddlers

Posted: Sun Jun 29, 2008 2:49 pm
by Wobbler
Does anyone know of a good way (a regexp pattern, for instance?) to capture a twiddler-prompt while performing a delayed command?

Actual output:

Code: Select all

search
-You begin to search...

\|/-\|/-\|/-\|/-\|/-\|/-\|You don't find anything hidden here...

*#>
Escape code substituted:

Code: Select all

search
-^HYou begin to search...

\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^HYou don't find anything hidden here...

*#>
Actual:

Code: Select all

*#>search
\You begin to search...

|/-\|/-\|/-\|/-Mandor leaves south.

\|/-\|/-\|Mandor has arrived from the south.

/You don't find anything hidden here...

*#>t mandor Tack
Ok.
Escapes substituted:

Code: Select all

*#>search
\^HYou begin to search...

|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^HMandor leaves south.

\^H|^H/^H-^H\^H|^H/^H-^H\^H|^HMandor has arrived from the south.

/^HYou don't find anything hidden here...

*#>t mandor Tack

Re: Powwow Action triggering on Twiddlers

Posted: Sun Jun 29, 2008 8:58 pm
by Elestir
I use this to filter it out:

Code: Select all

#action %unback ^[\\|\\\/-].*\010(.+)=#emulate ($(2))

Re: Powwow Action triggering on Twiddlers

Posted: Mon Jun 30, 2008 1:25 pm
by Wobbler
But that won't trigger on a spinning twiddler on an unfinished line...

Perhaps I should ask a more general question: Is it at all possible to get an action to trigger on a line not finished by a CR/LF?

Re: Powwow Action triggering on Twiddlers

Posted: Mon Jun 30, 2008 3:23 pm
by Elestir
As far as I know that is not possible in powwow as the actions are applied on whole lines, not partial ones. Why would you need something like that anyway?

The action I've given simply transforms this:

Code: Select all

/-\|/Foo bar.
(with the special codes in the twiddlers)
to this:

Code: Select all

Foo bar.
so that actions catching "Foo bar." can actually work on "/-\|/Foo bar." too.

Re: Powwow Action triggering on Twiddlers

Posted: Mon Jun 30, 2008 3:24 pm
by Wobbler
I don't, but I was bored.