{"id":851,"date":"2021-03-15T12:39:03","date_gmt":"2021-03-15T04:39:03","guid":{"rendered":"\/?p=851"},"modified":"2021-03-15T12:39:04","modified_gmt":"2021-03-15T04:39:04","slug":"1-8-%e8%8e%b7%e5%8f%96%e7%bb%88%e7%ab%af%e7%9a%84%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"http:\/\/xinblog.ltd\/?p=851","title":{"rendered":"1.8.\u83b7\u53d6\u7ec8\u7aef\u7684\u4fe1\u606f"},"content":{"rendered":"\n<p>\u5728\u4e66\u5199shell\u811a\u672c\u7684\u65f6\u5019,\u514d\u4e0d\u4e86\u5904\u7406\u7ec8\u7aef\u76f8\u5173\u7684\u4fe1\u606f,\u884c\u6570,\u5217\u6570 \u5149\u6807\u4fe1\u606f,\u5bc6\u7801\u5b57\u6bb5\u7b49,\u5982\u679c\u83b7\u53d6\u5230\u662f\u672c\u7ae0\u7684\u91cd\u70b9<\/p>\n\n\n\n<p>tput\u548cstty\u662f\u4e24\u6b3e\u7ec8\u7aef\u5904\u7406\u7684\u5de5\u5177<\/p>\n\n\n\n<p>\u83b7\u53d6\u7ec8\u7aef\u7684\u884c\u6570\u548c\u5217\u6570<\/p>\n\n\n\n<p>tput cols<\/p>\n\n\n\n<p>tput lines<\/p>\n\n\n\n<p>\u6253\u5370\u5f53\u524d\u7ec8\u7aef\u7684\u540d\u5b57<\/p>\n\n\n\n<p>tput longname<\/p>\n\n\n\n<p>\u5c06\u5149\u6807\u79fb\u52a8\u5230\u65b9\u4f4d(100,100)\u5904<\/p>\n\n\n\n<p>tput cup 100 100<\/p>\n\n\n\n<p>\u8bbe\u5907\u7ec8\u7aef\u7684\u80cc\u666f\u8272<\/p>\n\n\n\n<p>tput setb num<\/p>\n\n\n\n<p>\u8fd9\u4e2anum\u53ef\u4ee5\u4ece0-7\u9009\u62e9<\/p>\n\n\n\n<p>\u8bbe\u5907\u7ec8\u7aef\u7684\u524d\u666f\u8272<\/p>\n\n\n\n<p>tput setf num<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u6587\u672c\u6837\u5f0f\u4e3a\u7c97\u4f53<\/p>\n\n\n\n<p>tput bold<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u4e0b\u5212\u7ebf\u7684\u5f00\u95ed<\/p>\n\n\n\n<p>tput smu1<\/p>\n\n\n\n<p>tput rmu1<\/p>\n\n\n\n<p>\u5220\u9664\u5f53\u524d\u5149\u6807\u4f4d\u7f6e\u5230\u884c\u5c3e\u7684\u6240\u6709\u5185\u5bb9<\/p>\n\n\n\n<p>tput ed<\/p>\n\n\n\n<p>\u6bd4\u5982\u6709\u4e00\u4e2a \u8f93\u5165\u5bc6\u7801\u7684\u811a\u672c<\/p>\n\n\n\n<p>#!\/bin\/bash<\/p>\n\n\n\n<p>echo -e &#8220;Enter password: &#8220;<\/p>\n\n\n\n<p>stty -echo<\/p>\n\n\n\n<p>read password<\/p>\n\n\n\n<p>stty echo<\/p>\n\n\n\n<p>echo<\/p>\n\n\n\n<p>echo &#8220;Password read&#8221;<\/p>\n\n\n\n<p>-echo\u8fdb\u5236\u8f93\u51fa\u53d1\u9001\u5230\u7ec8\u7aef,\u7ec8\u7aefecho\u5141\u8bb8\u53d1\u9001\u8f93\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e66\u5199shell\u811a\u672c\u7684\u65f6\u5019,\u514d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/851"}],"collection":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":0,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"wp:attachment":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}