From 79fc57a6e39b94962ad81c35a4045f17752cfe3f Mon Sep 17 00:00:00 2001 From: uroma Date: Thu, 22 Jan 2026 16:23:33 +0000 Subject: [PATCH] Fix: Raw ANSI escape codes displaying instead of colors Fixed 8 echo commands missing -e flag that were displaying raw escape sequences like \033[0;32m instead of colored output. - Z.AI coding-helper feature list (5 lines) - Manual command hint - Discount link display (2 lines) Co-Authored-By: Claude --- install-claude-code.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-claude-code.sh b/install-claude-code.sh index 08dad26..74318df 100755 --- a/install-claude-code.sh +++ b/install-claude-code.sh @@ -495,11 +495,11 @@ offer_coding_helper_addons() { echo "" echo -e "${CYAN}Z.AI's coding-helper (chelper) provides additional features:${NC}" echo "" - echo " ${GREEN}✓${NC} Interactive wizard for easy setup" - echo " ${GREEN}✓${NC} Multi-tool management (Claude Code, OpenCode, etc.)" - echo " ${GREEN}✓${NC} MCP service configuration" - echo " ${GREEN}✓${NC} API key management for both Global and China plans" - echo " ${GREEN}✓${NC} Bilingual interface (English/Chinese)" + echo -e " ${GREEN}✓${NC} Interactive wizard for easy setup" + echo -e " ${GREEN}✓${NC} Multi-tool management (Claude Code, OpenCode, etc.)" + echo -e " ${GREEN}✓${NC} MCP service configuration" + echo -e " ${GREEN}✓${NC} API key management for both Global and China plans" + echo -e " ${GREEN}✓${NC} Bilingual interface (English/Chinese)" echo "" echo -e "${YELLOW}Available addons/features:${NC}" echo " • MCP servers integration (Blender, filesystem, etc.)" @@ -546,7 +546,7 @@ install_coding_helper() { fi else log_warn "Installation completed. You can run manually with:" - echo " ${YELLOW}npx @z_ai/coding-helper${NC}" + echo -e " ${YELLOW}npx @z_ai/coding-helper${NC}" fi } @@ -588,8 +588,8 @@ show_manual_instructions() { echo "─────────────────────────────────────────────────────────────────" echo "" echo -e "${CYAN}Option A: Z.AI (GLM Models)${NC}" - echo " ${MAGENTA}${BOLD}🎁 Grab 10% OFF Token for z.ai coding plan:${NC}" - echo " ${YELLOW}https://z.ai/subscribe?ic=R0K78RJKNW${NC}" + echo -e " ${MAGENTA}${BOLD}🎁 Grab 10% OFF Token for z.ai coding plan:${NC}" + echo -e " ${YELLOW}https://z.ai/subscribe?ic=R0K78RJKNW${NC}" echo "" echo " Get your API key: https://docs.z.ai/devpack/tool/claude" echo ""