ri > Thor::Shell::Color

📛 NAME

Thor::Shell::Color < Thor::Shell::Basic

Inherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.

🚀 Quick Reference

Use CaseCommandDescription
🎨 Set foreground colorset_color(text, :green)Color text using ANSI color name
🔍 Check if colors are disabledare_colors_disabled?Returns true if color output is suppressed
🖥️ Check terminal color supportcan_display_colors?Returns true if terminal supports ANSI colors
🎯 Set foreground and backgroundset_color(text, :red, :on_white)Color text with foreground and background

🧩 Constants

🛠 Instance Methods

Thor::Shell::Color
📛 NAME 🚀 Quick Reference 🧩 Constants 🛠 Instance Methods

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:34 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format