TinTin++ Configs for DiscworldMUD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
682 B

  1. #!/bin/sh
  2. # clear && watch --color -t -n 0.4 'python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`'
  3. clear && while true; do
  4. output=$(printf "\ec"; python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`);
  5. echo "$output";
  6. sleep 0.5;
  7. done
  8. # HOME=$(tput cup 0 0)
  9. # ED=$(tput ed)
  10. # EL=$(tput el)
  11. # printf '%s%s' "$HOME" "$ED"
  12. # while true; do
  13. # ROWS=$(tput lines)
  14. # COLS=$(tput cols)
  15. # CMD="python src/mdtparse.py logs/mapdoortext.log"
  16. # ${SHELL:=sh} -c "$CMD" | tail -n $ROWS | while IFS= read LINE; do
  17. # printf '%-*.*s%s\n' $COLS $COLS "$LINE" "$EL"
  18. # done
  19. # printf '%s%s' "$ED" "$HOME"
  20. # sleep 0.3;
  21. # done