Usuniecie pogoni bindowanej (f4).

This commit is contained in:
Bartek Stalewski 2015-02-03 00:35:30 +01:00
parent 594fd4e4e5
commit 7f6d4dcf4f
2 changed files with 82 additions and 96 deletions

View file

@ -2,119 +2,120 @@
/def key_nkp0 = stan /def key_nkp0 = stan
/def dobind = \ /def dobind = \
%{*} %;\ %{*}%;\
/unset bindings %;\ /unset bindings%;\
/set bindings= %;\ /set bindings=%;\
/undef tempbind /undef tempbind
/def tbind = \ /def tbind = \
/if ( {bindings} =~ {*} ) \ /if ( {bindings} =~ {*} ) \
/true %;\ /true%;\
/else \ /else \
/set bindings %{*} %;\ /set bindings %{*}%;\
/def -b'`' tempbind = /dobind %{*} %;\ /def -b'`' tempbind = /dobind %{*}%;\
/if ( {ktype} =~ "mac" ) \ /if ( {ktype} =~ "mac" ) \
/def key_nkp- = /dobind %{*} %;\ /def key_nkp- = /dobind %{*}%;\
/endif %;\ /endif%;\
/echo -p @{C%c_info}>>>@{n} %;\ /echo -p @{C%c_info}>>>@{n}%;\
/beep 1 %;\ /beep 1%;\
/endif /endif
/def f1 = \ /def f1 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f1 - @{C%c_info}%{f1} %;\ /echo -p #@{C%c_info}#@{n}# f1 - @{C%c_info}%{f1}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f1 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f1 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f1 empty %;\ /set f1 empty%;\
/else \ /else \
/def key_f1 = %{*} %;\ /def key_f1 = %{*}%;\
/set f1 %{*} %;\ /set f1 %{*}%;\
/endif /endif
/def f2 = \ /def f2 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f2 - @{C%c_info}%{f2} %;\ /echo -p #@{C%c_info}#@{n}# f2 - @{C%c_info}%{f2}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f2 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f2 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f2 empty %;\ /set f2 empty%;\
/else \ /else \
/def key_f2 = %{*} %;\ /def key_f2 = %{*}%;\
/set f2 %{*} %;\ /set f2 %{*}%;\
/endif /endif
/def f3 = \ /def f3 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f3 - @{C%c_info}%{f3} %;\ /echo -p #@{C%c_info}#@{n}# f3 - @{C%c_info}%{f3}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f3 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f3 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f3 empty %;\ /set f3 empty%;\
/else \ /else \
/def key_f3 = %{*} %;\ /def key_f3 = %{*}%;\
/set f3 %{*} %;\ /set f3 %{*}%;\
/endif /endif
/def f4 = \ /def f4 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f4 - @{C%c_info}%{f4} %;\ /echo -p #@{C%c_info}#@{n}# f4 - @{C%c_info}%{f4}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f4 = /echo -p #@{C%c_info}#@{n}# Not hunting anyone. %;\ /def key_f4 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f4 empty %;\ /set f4 empty%;\
/else \ /else \
/def key_f4 = %{*} %;\ /def key_f4 = %{*}%;\
/set f4 %{*} %;\ /set f4 %{*}%;\
/endif /endif
/def f5 = \ /def f5 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f5 - @{C%c_info}%{f5} %;\ /echo -p #@{C%c_info}#@{n}# f5 - @{C%c_info}%{f5}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f5 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f5 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f5 empty %;\ /set f5 empty%;\
/else \ /else \
/def key_f5 = %{*} %;\ /def key_f5 = %{*}%;\
/set f5 %{*} %;\ /set f5 %{*}%;\
/endif /endif
/def f6 = \ /def f6 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f6 - @{C%c_info}%{f6} %;\ /echo -p #@{C%c_info}#@{n}# f6 - @{C%c_info}%{f6}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f6 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f6 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f6 empty %;\ /set f6 empty%;\
/else \ /else \
/def key_f6 = %{*} %;\ /def key_f6 = %{*}%;\
/set f6 %{*} %;\ /set f6 %{*}%;\
/endif /endif
/def f7 = \ /def f7 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f7 - @{C%c_info}%{f7} %;\ /echo -p #@{C%c_info}#@{n}# f7 - @{C%c_info}%{f7}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f7 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f7 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f7 empty %;\ /set f7 empty%;\
/else \ /else \
/def key_f7 = %{*} %;\ /def key_f7 = %{*}%;\
/set f7 %{*} %;\ /set f7 %{*}%;\
/endif /endif
/def f8 = \ /def f8 = \
/if ( {1} =~ "" ) \ /if ( {1} =~ "" ) \
/echo -p #@{C%c_info}#@{n}# f8 - @{C%c_info}%{f8} %;\ /echo -p #@{C%c_info}#@{n}# f8 - @{C%c_info}%{f8}%;\
/elseif ( {1} =~ "empty" ) \ /elseif ( {1} =~ "empty" ) \
/def key_f8 = /echo -p #@{C%c_info}#@{n}# Not set. %;\ /def key_f8 = /echo -p #@{C%c_info}#@{n}# Not set.%;\
/set f8 empty %;\ /set f8 empty%;\
/else \ /else \
/def key_f8 = %{*} %;\ /def key_f8 = %{*}%;\
/set f8 %{*} %;\ /set f8 %{*}%;\
/endif /endif
/def bs = \ /def bs = \
/echo -p #@{C%c_info}#@{n}# ------------ %;\ /echo -p #@{C%c_info}#@{n}# ------------%;\
/echo -p #@{C%c_info}#@{n}# f2 - @{C%c_info}%{f2}@{n} %;\ /echo -p #@{C%c_info}#@{n}# f1 - @{C%c_info}%{f1}@{n}%;\
/echo -p #@{C%c_info}#@{n}# f3 - @{C%c_info}%{f3}@{n} %;\ /echo -p #@{C%c_info}#@{n}# f2 - @{C%c_info}%{f2}@{n}%;\
/echo -p #@{C%c_info}#@{n}# f4 - @{C%c_info}%{f4}@{n} %;\ /echo -p #@{C%c_info}#@{n}# f3 - @{C%c_info}%{f3}@{n}%;\
/echo -p #@{C%c_info}#@{n}# ------------ %;\ /echo -p #@{C%c_info}#@{n}# f4 - @{C%c_info}%{f4}@{n}%;\
/echo -p #@{C%c_info}#@{n}# f5 - @{C%c_info}%{f5} %;\ /echo -p #@{C%c_info}#@{n}# ------------%;\
/echo -p #@{C%c_info}#@{n}# f6 - @{C%c_info}%{f6} %;\ /echo -p #@{C%c_info}#@{n}# f5 - @{C%c_info}%{f5}%;\
/echo -p #@{C%c_info}#@{n}# f7 - @{C%c_info}%{f7} %;\ /echo -p #@{C%c_info}#@{n}# f6 - @{C%c_info}%{f6}%;\
/echo -p #@{C%c_info}#@{n}# f7 - @{C%c_info}%{f7}%;\
/echo -p #@{C%c_info}#@{n}# f8 - @{C%c_info}%{f8} /echo -p #@{C%c_info}#@{n}# f8 - @{C%c_info}%{f8}

View file

@ -16,130 +16,115 @@
/rund %{*} %;\ /rund %{*} %;\
/runx %{*} /runx %{*}
/def dobind_war = \
%{*} %;\
/f4 empty
/def runne = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnocny-wschod." runne2 = \ /def runne = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnocny-wschod." runne2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war ne
/def runnw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnocny-zachod." runnw2 = \ /def runnw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnocny-zachod." runnw2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war nw
/def runse = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludniowy-wschod." runse2 = \ /def runse = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludniowy-wschod." runse2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war se
/def runsw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludniowy-zachod." runsw2 = \ /def runsw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludniowy-zachod." runsw2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war sw
/def rune = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na wschod." rune2 = \ /def rune = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na wschod." rune2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" ######### "), {zc_alarm}) %%;\ /test echo(decode_attr(" ######### "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war e
/def runw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na zachod." runw2 = \ /def runw = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na zachod." runw2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" ########## "), {zc_alarm}) %%;\ /test echo(decode_attr(" ########## "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war w
/def runn = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnoc." runn2 = \ /def runn = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na polnoc." runn2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" ### %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" ### %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war n
/def runs = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludnie." runs2 = \ /def runs = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na poludnie." runs2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" ### "), {zc_alarm}) %%;\ /test echo(decode_attr(" ### "), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war s
/def runu = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na gore." runu2 = \ /def runu = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na gore." runu2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" #### "), {zc_alarm}) %%;\ /test echo(decode_attr(" #### "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war u
/def rund = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na dol." rund2 = \ /def rund = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * na dol." rund2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" ##### "), {zc_alarm}) %%;\ /test echo(decode_attr(" ##### "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" ##### "), {zc_alarm}) %%;\ /test echo(decode_attr(" ##### "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war d
/def runx = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * do wyjscia." runx2 = \ /def runx = /def -mglob -aC%c_alarm -Fp2 -t"*%{kto_uciekl} * do wyjscia." runx2 = \
/echo %%;\ /echo %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # %{kto_uciekl} F4"), {zc_alarm}) %%;\ /test echo(decode_attr(" # # %{kto_uciekl}"), {zc_alarm}) %%;\
/test echo(decode_attr(" # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/test echo(decode_attr(" # # "), {zc_alarm}) %%;\ /test echo(decode_attr(" # # "), {zc_alarm}) %%;\
/echo %%;\ /echo %%;\
/beep 1 %%;\ /beep 1
/f4 /dobind_war wyjscie
/def nohunt = /purge -i run*2%; /def key_f4 = /echo -p #@{C%c_info}#@{n}# Not hunting anyone. %; /set f4 empty /def nohunt = /purge -i run*2