{"id":2482,"date":"2019-05-27T00:07:07","date_gmt":"2019-05-26T16:07:07","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2482"},"modified":"2019-06-01T22:57:08","modified_gmt":"2019-06-01T14:57:08","slug":"stty","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/stty","title":{"rendered":"stty\u547d\u4ee4 – \u4fee\u6539\u7ec8\u7aef\u547d\u4ee4\u884c\u7684\u76f8\u5173\u8bbe\u7f6e"},"content":{"rendered":"\n
stty\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u548c\u4fee\u6539\u5f53\u524d\u6ce8\u518c\u7684\u7ec8\u7aef\u7684\u901a\u4fe1\u53c2\u6570\u3002UNIX\u7cfb\u7edf\u4e3a\u952e\u76d8\u7684\u8f93\u5165\u548c\u7ec8\u7aef\u7684\u8f93\u51fa\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u63a7\u5236\u624b\u6bb5\uff0c\u53ef\u4ee5\u901a\u8fc7stty\u547d\u4ee4\u5bf9\u7279\u5b9a\u7ec8\u7aef\u6216\u901a\u4fe1\u7ebf\u8def\u8bbe\u7f6e\u9009\u9879\u3002stty\u8fd8\u53ef\u7528\u4e8e\u63a7\u5236\u4e00\u4e9b\u5177\u6709\u7279\u6b8a\u63a7\u5236\u529f\u80fd\u7684\u952e\u3002\u6bd4\u5982\u7cfb\u7edf\u53ef\u80fd\u5df2\u7ecf\u4f7f\u7528CTRL-D\u4f5c\u4e3a\u6587\u4ef6\u7ed3\u675f\u7b26\uff0c\u4f46\u4f60\u53ef\u80fd\u559c\u6b22\u4f7f\u7528CTRL-C\u3002\u8fd9\u65f6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528stty\u547d\u4ee4\u6539\u53d8\u8fd9\u4e9b\u9ed8\u8ba4\u8bbe\u7f6e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>stty [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5728\u547d\u4ee4\u884c\u4e0b\u7981\u6b62\u8f93\u51fa\u5927\u5199\u7684\u65b9\u6cd5\uff1a<\/p>\n\n\n\n \u5728\u547d\u4ee4\u884c\u4e0b\u7981\u6b62\u8f93\u51fa\u5c0f\u5199\uff1a<\/p>\n\n\n\n \u6253\u5370\u51fa\u7ec8\u7aef\u7684\u884c\u6570\u548c\u5217\u6570\uff1a<\/p>\n\n\n\n \u6539\u53d8Ctrl+D\u7684\u65b9\u6cd5\uff1a<\/p>\n\n\n\n \u5c4f\u853d\u663e\u793a\uff1a<\/p>\n\n\n\n \n\n\u6d4b\u8bd5\u65b9\u6cd5:\n\n<\/p>\n\n\n\n \u5ffd\u7565\u56de\u8f66\u7b26\uff1a<\/p>\n\n\n\n stty\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u548c\u4fee\u6539\u5f53\u524d\u6ce8\u518c\u7684\u7ec8\u7aef\u7684\u901a\u4fe1\u53c2\u6570\u3002UNIX\u7cfb\u7edf\u4e3a\u952e\u76d8\u7684\u8f93\u5165\u548c\u7ec8\u7aef\u7684\u8f93\u51fa\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u63a7\u5236\u624b\u6bb5\uff0c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2482"}],"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=2482"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2482\/revisions"}],"predecessor-version":[{"id":3007,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2482\/revisions\/3007"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -a <\/td> \u4ee5\u5bb9\u6613\u9605\u8bfb\u7684\u65b9\u5f0f\u6253\u5370\u5f53\u524d\u7684\u6240\u6709\u914d\u7f6e<\/td><\/tr> -g <\/td> \u4ee5stty\u53ef\u8bfb\u65b9\u5f0f\u6253\u5370\u5f53\u524d\u7684\u6240\u6709\u914d\u7f6e <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# stty iuclc\nstty -iuclc<\/pre>\n\n\n\n
[root@linuxcool ~]# stty olcuc\nstty -olcuc<\/pre>\n\n\n\n
[root@linuxcool ~]# stty size <\/pre>\n\n\n\n
[root@linuxcool ~]# stty eof \"string\" <\/pre>\n\n\n\n
[root@linuxcool ~]# stty -echo\nstty echo<\/pre>\n\n\n\n
[root@linuxcool ~]# stty -echo;read;stty echo;read <\/pre>\n\n\n\n
[root@linuxcool ~]# stty igncr<\/pre>\n","protected":false},"excerpt":{"rendered":"