record and parse tmux output