diff --git a/dt b/dt new file mode 100755 index 0000000..7638cfb --- /dev/null +++ b/dt @@ -0,0 +1 @@ +clear && watch -c -t -n 5 'clear && cat logs/xptimers.log' diff --git a/grp b/grp new file mode 100755 index 0000000..bd64202 --- /dev/null +++ b/grp @@ -0,0 +1,7 @@ +#!/bin/sh + +clear && while true; do + output=$(clear; cat logs/groupshields.log); + echo "$output"; + sleep 0.5; +done diff --git a/map b/map new file mode 100755 index 0000000..638350d --- /dev/null +++ b/map @@ -0,0 +1 @@ +watch -ctn 0.4 'clear;cat logs/minimap.log' diff --git a/mdt b/mdt index f985447..3e87fe4 100755 --- a/mdt +++ b/mdt @@ -1,9 +1,24 @@ #!/bin/sh # clear && watch --color -t -n 0.4 'python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`' + clear && while true; do - output=$(python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`); - clear; + output=$(printf "\ec"; python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`); echo "$output"; - sleep 0.3; + sleep 0.5; done + +# HOME=$(tput cup 0 0) +# ED=$(tput ed) +# EL=$(tput el) +# printf '%s%s' "$HOME" "$ED" +# while true; do +# ROWS=$(tput lines) +# COLS=$(tput cols) +# CMD="python src/mdtparse.py logs/mapdoortext.log" +# ${SHELL:=sh} -c "$CMD" | tail -n $ROWS | while IFS= read LINE; do +# printf '%-*.*s%s\n' $COLS $COLS "$LINE" "$EL" +# done +# printf '%s%s' "$ED" "$HOME" +# sleep 0.3; +# done