Powwow Action triggering on Twiddlers

Here we discussed clients, mappers, tunnels and their settings.
Locked
Wobbler
Posts: 393
Joined: Mon Feb 25, 2008 10:02 pm

Powwow Action triggering on Twiddlers

Post 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
Politicians are wise and benevolent and will gladly sacrifice themselves for the common good. Anyone who implies that there might exist dishonest politicians is obviously a terrorist who should be locked up indefinitely without a trial.
Elestir
Posts: 231
Joined: Sat Feb 23, 2008 11:47 pm
Location: Olomouc, Czech Republic
Contact:

Re: Powwow Action triggering on Twiddlers

Post by Elestir »

I use this to filter it out:

Code: Select all

#action %unback ^[\\|\\\/-].*\010(.+)=#emulate ($(2))
Wobbler
Posts: 393
Joined: Mon Feb 25, 2008 10:02 pm

Re: Powwow Action triggering on Twiddlers

Post 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?
Politicians are wise and benevolent and will gladly sacrifice themselves for the common good. Anyone who implies that there might exist dishonest politicians is obviously a terrorist who should be locked up indefinitely without a trial.
Elestir
Posts: 231
Joined: Sat Feb 23, 2008 11:47 pm
Location: Olomouc, Czech Republic
Contact:

Re: Powwow Action triggering on Twiddlers

Post 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.
Wobbler
Posts: 393
Joined: Mon Feb 25, 2008 10:02 pm

Re: Powwow Action triggering on Twiddlers

Post by Wobbler »

I don't, but I was bored.
Politicians are wise and benevolent and will gladly sacrifice themselves for the common good. Anyone who implies that there might exist dishonest politicians is obviously a terrorist who should be locked up indefinitely without a trial.
Locked