华丽的色值表-创新互联
1 想必大家都想在写脚本执行的时候,有醒目的提示颜色吧,贡献我收集的华丽的色值表。 #!/bin/bash #======================================================================================= # FILE: Colourful.sh # USAGE: bash Colourful.sh |sh Colourful.sh # DESCRIPTION: Print World Colour. # OPTIONS: see fuction 'usage' below # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Dr.-Vision. Simple(sp) # COMPANY: China # VERSION: 1.0 # CREATED: 12.07.2015 - 10:15:30 # REVISION: 12.07.2015 # PROJECT: XXX # COPYRITHT: Copyright(c)2002-2020 Shell, All Rights Reserved #======================================================================================= # Shell Var Here # Function comments #=== FUNCTION ==================================================================== # NAME: Colourful_Style # DESCRIPTION: 打印Shell的色值表. # PARAMETER 1: --- #======================================================================================= function Colourful_Style { printf "======================== 华丽的色值表 Style 1 ========================\n\n" for ((style=0;style<=7;style++)) { for ((fg=30;fg<=37;fg++)) { for ((bg=40;bg<=47;bg++)) { #echo $style $fg $j crt="\033[${style};${fg};${bg}m" printf "${crt}" printf "%s" "sg:${style}-fg:${fg}-bg:${bg}" printf "\033[0m" } printf "\n" } printf "\n" } printf "======================== 华丽的色值表 Style 2 ========================\n\n" for ((STYLE=0;STYLE<=7;STYLE++)) { for ((FG=30;FG<=37;FG++)) { for ((BG=100;BG<=107;BG++)) { #echo $style $fg $j CRT="\033[${STYLE};${FG};${BG}m" printf "${CRT}" printf "%s" "STY:${STYLE}-cFG:${FG}-cBG:${BG}" printf "\033[0m" } echo } echo } } # Section comments #--------------------------------------------------------------------------------------- # define main. #--------------------------------------------------------------------------------------- Colourful_Style # line end comments
结果如下:
我们提供的服务有:做网站、网站制作、微信公众号开发、网站优化、网站认证、芜湖ssl等。为1000+企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的芜湖网站制作公司 附件:http://down.51cto.com/data/2368574另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
网页题目:华丽的色值表-创新互联
链接分享:http://scyanting.com/article/diecdj.html