{"id":4550,"date":"2019-08-16T23:31:42","date_gmt":"2019-08-16T15:31:42","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4550"},"modified":"2019-08-16T23:31:44","modified_gmt":"2019-08-16T15:31:44","slug":"tput","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/tput","title":{"rendered":"tput\u547d\u4ee4 – \u521d\u59cb\u5316\u548c\u64cd\u4f5c\u4f1a\u8bdd"},"content":{"rendered":"\n
tput\u547d\u4ee4\u5c06\u901a\u8fc7 terminfo \u6570\u636e\u5e93\u5bf9\u60a8\u7684\u7ec8\u7aef\u4f1a\u8bdd\u8fdb\u884c\u521d\u59cb\u5316\u548c\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528 tput\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u51e0\u9879\u7ec8\u7aef\u529f\u80fd\uff0c\u5982\u79fb\u52a8\u6216\u66f4\u6539\u5149\u6807\u3001\u66f4\u6539\u6587\u672c\u5c5e\u6027\uff0c\u4ee5\u53ca\u6e05\u9664\u7ec8\u7aef\u5c4f\u5e55\u7684\u7279\u5b9a\u533a\u57df\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>tput [\u53c2\u6570]<\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u79fb\u52a8\u5149\u6807\u5e76\u663e\u793a\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u5c06\u80cc\u666f\u989c\u8272\u66f4\u6539\u4e3a\u9ec4\u8272\uff0c\u5c06\u524d\u666f\u989c\u8272\u66f4\u6539\u4e3a\u7ea2\u8272\uff1a<\/p>\n\n\n\n tput\u547d\u4ee4\u5c06\u901a\u8fc7 terminfo \u6570\u636e\u5e93\u5bf9\u60a8\u7684\u7ec8\u7aef\u4f1a\u8bdd\u8fdb\u884c\u521d\u59cb\u5316\u548c\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528 tput\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u51e0\u9879 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4550"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4550"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4550\/revisions"}],"predecessor-version":[{"id":4627,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4550\/revisions\/4627"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}setb <\/td> \u7528\u4e8e\u8bbe\u7f6e\u80cc\u666f\u989c\u8272<\/td><\/tr> setf <\/td> \u7528\u4e8e\u8bbe\u7f6e\u524d\u666f\u989c\u8272 <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# tput sc\n[root@linuxcool ~]# tput cup 23 45\n[root@linuxcool ~]# echo \u201cInput from tput\/echo at 23\/45\u201d\n[root@linuxcool ~]# tput rc<\/pre>\n\n\n\n
[root@linuxcool ~]# tput setb 6 tput setf 4<\/pre>\n","protected":false},"excerpt":{"rendered":"