qwen-code/test-scripts/progress.sh
tanzhenxin b48e3caa75 feat(shell): enable PTY by default and various enhancements
### Shell & Interactive Terminal Improvements
- PTY shell is now enabled by default instead of disabled
- Improved shell output rendering, process termination, and added fallback warning
- Background commands now properly capture subprocess PIDs on non-Windows

### Coding Plan Improvements
- Simplified auth message, added /model tip, improved system info display
- Reordered model list to prioritize glm-5, kimi-k2.5, MiniMax-M2.5
- Model selection is now preserved when updating if the model still exists

### Other Changes
- Added shared symlink utility; debug logs now have latest alias
- Unknown settings warnings go to debug log instead of user-facing warnings
- Fixed subagent confirmation state detection
- Removed debug UI from AgentCreationWizard

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-05 11:28:13 +08:00

16 lines
474 B
Bash
Executable file

#!/bin/bash
# Progress bar script that overwrites the same line using \r
# Tests PTY's ability to handle carriage return / cursor movement
total=20
for ((i = 1; i <= total; i++)); do
pct=$((i * 100 / total))
filled=$((pct / 5))
empty=$((20 - filled))
bar=$(printf '%0.s#' $(seq 1 $filled 2>/dev/null))
space=$(printf '%0.s-' $(seq 1 $empty 2>/dev/null))
printf "\r[%s%s] %3d%% (%d/%d)" "$bar" "$space" "$pct" "$i" "$total"
sleep 0.5
done
echo ""
echo "Done!"