problems removing prompt
Posted: Wed Aug 26, 2015 5:08 pm
I'm having trouble removing the prompt (or matching other lines) when I send commands in an alias/trigger, and possibly when I just rapidly send commands.
I've never had this problem in tintin++, all I did was set "#PROMPT {^\> $} {\> } 0;" and it always grabbed the prompt without any problems.
I have a trigger that calls deleteLine when it matches "^> $", and that works fine. The problem is that sometimes the next line of mud output gets put on the same line as the prompt.
For example, if I have an alias "pot" that does
send("get potion from cloak");
send("drink potion");
send("smash bottle");
Then I get output like
You get the potion from your cloak.
> You drink the potion.
> You smash the bottle into tiny pieces.
I tried to also use a replace to remove the first two characters, but it still causes matching problems. Sometimes it seems to do the replace twice and I see
You get the potion from your cloak.
o drink the potion.
...
It also causes matches to fail. If I try to have a trigger condition that matches from the beginning of a line, the prompt at the beginning changes the line and the condition doesn't match.
Any thoughts?
I've never had this problem in tintin++, all I did was set "#PROMPT {^\> $} {\> } 0;" and it always grabbed the prompt without any problems.
I have a trigger that calls deleteLine when it matches "^> $", and that works fine. The problem is that sometimes the next line of mud output gets put on the same line as the prompt.
For example, if I have an alias "pot" that does
send("get potion from cloak");
send("drink potion");
send("smash bottle");
Then I get output like
You get the potion from your cloak.
> You drink the potion.
> You smash the bottle into tiny pieces.
I tried to also use a replace to remove the first two characters, but it still causes matching problems. Sometimes it seems to do the replace twice and I see
You get the potion from your cloak.
o drink the potion.
...
It also causes matches to fail. If I try to have a trigger condition that matches from the beginning of a line, the prompt at the beginning changes the line and the condition doesn't match.
Any thoughts?