/require -q statusbar.tf ;; Antti Pietikäinen (Heidel@Batmud) 2004 ;; ------ prompt and send echo ------ /def -F -i -w'bat' -mregexp -t"^Hp: [0-9-]+/[0-9-]+ Sp: [0-9-]+/[0-9-]+ Exp: [0-9-]+ >" bat_false_prompt=\ /echo -aCred FAILED PROMPT!%;\ /set bat_latest_prompt=%{*} /def -F -q -i -w'bat' -mregexp -h"SEND ^[^@].*" bat_show_send = \ /echo -p @{BCblack}%{bat_latest_prompt}@{n} @{Ccyan}%{*} ;; ------ status field thing ------------- ;; catch the prompt /def -i -F -mregexp -h"PROMPT ^Hp: ([0-9-]+)/([0-9-]+) Sp: ([0-9-]+)/([0-9-]+) Exp: ([0-9-]+) >" bat_catch_prompt=\ /prompt%;\ /test statusbar_handle(%{P1},%{P2},%{P3},%{P4})%;\ /set bat_latest_prompt=%{*} ;; catch the sc /def -i -F -mregexp -t"^---- Hp: ([0-9-]+).*\(([0-9-]+)\) Sp: ([0-9-]+).*\(([0-9-]+)\) Ep: ([0-9-]+).*\(([0-9-]+)\) ----" bat_catch_sc=\ /test statusbar_handle(%{P1},%{P2},%{P3},%{P4},%{P5},%{P6})