[TF] PROMPT HOOK regexp matches, but %Pn won't be set?
Brought to you by:
kenkeys
|
From: mazur at xs4all.nl (S. Linnemann) - 2003-03-26 09:33:01
|
Hello,
I'm trying to get stuff from my MUC?D pompt in variables, but can;t seem
to get it to work, even after reading the relevant help pages.
/def -p1 -mregexp -h"PROMPT ^[[3.m([0-9]*)h, ^[[..m^[[..m([0-9]*)m
[[..m([a-z]*-)" prm_hook = /set hitp=%P1 %;/set manap=%P2%;/test
prompt({*})
is my current try. When I set mecho on, I get:
+ PROMPT HOOK: /prm_hook
++ /prm_hook: /set hitp=
++ /prm_hook: /set manap=
++ /prm_hook: /test prompt({*})
So why don't %P1 and %P2 work? The regexp works, because /mecho shows
the hook is triggered, So I can;t figure, why the %Px matches won't
get set.
Stefan.
|