shell tput的用法
Posted 欢迎来到快乐嘉年华的博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了shell tput的用法相关的知识,希望对你有一定的参考价值。
tput sc ##记录光标位置
tput cup x y ###移动光标至x列y行
tput rc ##返回光标位置
tput civis ##隐藏光标
tput cnorm ## 显示光标
tput setaf ColorNumber## 设置前景色
tput setab ColorNumber ##设置背景色
tput cup x y ###移动光标至x列y行
tput rc ##返回光标位置
tput civis ##隐藏光标
tput cnorm ## 显示光标
tput setaf ColorNumber## 设置前景色
tput setab ColorNumber ##设置背景色
#加粗 bold=$(tput bold) #下划线 underline=$(tput sgr 0 1) #重置规则 reset=$(tput sgr0) #红色 red=$(tput setaf 1) #绿色 green=$(tput setaf 2)
以上是关于shell tput的用法的主要内容,如果未能解决你的问题,请参考以下文章