skills/working-with-tmux/SKILL.md 🔗
@@ -73,8 +73,9 @@ When prompts are long or appear in scrollback noise, generate random anchors to
```bash
A=$(openssl rand -hex 4)
+echo "A: $A"
tmux send-keys -t "ID" "echo ${A}-st; YOUR_COMMAND; echo ${A}-end" C-m
-# Then extract:
+sleep 1
tmux capture-pane -p -S - -t "ID" | sed -n '/^'"$A"'-st$/,/^'"$A"'-end$/{/^'"$A"'/d;p}'
```