Tcl命令-puts
来自KlniuWiki
puts 输出彩色文字 例如: <tcl>puts "Why not \033\[34mG\033\[31mo\033\[33mo\033\[34mg\033\[32ml\033\[31me\033\[0m first ?"</tcl>
其中使用了ANSI转义字符,详细的内容请参见 http://en.wikipedia.org/wiki/ANSI_escape_code
参考文献
- feherke. how to output colored text with a simple puts[EB/OL], 2006-09-27. [2011-05-07]. http://www.tek-tips.com/viewthread.cfm?qid=1283356&page=22.