{"id":51469,"date":"2017-07-24T08:23:19","date_gmt":"2017-07-23T23:23:19","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=51469"},"modified":"2017-07-24T08:23:19","modified_gmt":"2017-07-23T23:23:19","slug":"art-for-your-terminal","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/art-for-your-terminal\/","title":{"rendered":"bashfill - \u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8868\u793a\u3067\u304d\u308b\u30a2\u30fc\u30c8\u4f5c\u54c1\u3092\u4f5c\u6210\u3067\u304d\u308bWeb\u30b5\u30fc\u30d3\u30b9"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/07\/Is_20170721_101917.jpg\" alt=\"S 20170721 101917\" title=\"s_20170721_101917.jpg\" border=\"0\" width=\"819\" height=\"612\" \/><\/p>\n<p>\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306f\u300c\u9ed2\u3044\u753b\u9762\u300d\u3068\u547c\u3070\u308c\u6050\u308c\u3089\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u753b\u9762\u3002<\/p>\n<p>\u30ab\u30e9\u30d5\u30eb\u3068\u306f\u307b\u3069\u9060\u3044\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u304c\u300c<a href=\"https:\/\/max.io\/bash.html\">bashfill<\/a>\u300d\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u601d\u3063\u305f\u901a\u308a\u306e\u30a2\u30fc\u30c8\u4f5c\u54c1\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u3068\u30a2\u30fc\u30c8\u306e\u878d\u5408\u3092\u76ee\u6307\u3057Max Irwin\u6c0f\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305fWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u5b9f\u884c\u53ef\u80fd\u306a\u300140x23\u306e7\u8272\u306e\u30a2\u30fc\u30c8\u4f5c\u54c1\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30c9\u30c3\u30c8\u7d75\u3092\u4f5c\u6210\u3059\u308b\u305d\u306e\u4e0b\u90e8\u306bbash\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4fdd\u5b58\u3057\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308b\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\n#!\/bin\/bash\n#Background Colors\nE=$(tput sgr0);    R=$(tput setab 1); G=$(tput setab 2); Y=$(tput setab 3);\nB=$(tput setab 4); M=$(tput setab 5); C=$(tput setab 6); W=$(tput setab 7);\nfunction e() { echo -e \"$E\"; }\nfunction x() { echo -n \"$E  \"; }\nfunction r() { echo -n \"$R  \"; }\nfunction g() { echo -n \"$G  \"; }\nfunction y() { echo -n \"$Y  \"; }\nfunction b() { echo -n \"$B  \"; }\nfunction m() { echo -n \"$M  \"; }\nfunction c() { echo -n \"$C  \"; }\nfunction w() { echo -n \"$W  \"; }\n\n#putpixels\nfunction u() { \n    h=\"$*\";o=${h:0:1};v=${h:1}; \n    for i in `seq $v` \n    do \n        $o;\n    done \n}\n\nimg=\"\\\nx40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x15 b10 x15 e1 x11 b16 x13 e1 x10 b18 x12 e1 x9 b21 x10 e1 x8 b6 w11 b7 x8 e1 x8 b5 w14 b6 x7 e1 x7 b4 w18 b4 x7 e1 x7 b3 w20 b3 x7 e1 x7 b2 w23 b1 x7 e1 x7 b2 w23 b1 x7 e1 x7 b2 w23 x8 e1 x8 w23 x9 e1 x8 w22 x10 e1 x9 w20 x11 e1 x12 w11 r3 w1 x13 e1 x15 r11 x14 e1 x40\"\n\nfor n in $img\ndo\n    u $n\ndone\ne;\nexit 0;\n<\/pre>\n<p>test.sh\u306b\u4fdd\u5b58\u3057\u300c.\/test.sh\u300d\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/07\/Is_20170721_102052.jpg\" alt=\"S 20170721 102052\" title=\"s_20170721_102052.jpg\" border=\"0\" width=\"896\" height=\"541\" \/><\/p>\n<p>\u753b\u9762\u4e0b\u90e8\u306b\u3042\u308b\u300c<a href=\"https:\/\/max.io\/bash.html?zip=eDQwZTF4NDBlMXg0MGUxeDQwZTF4NDBlMXg0MGUxeDE1YjEweDE1ZTF4MTFiMTZ4MTNlMXgxMGIxOHgxMmUxeDliMjF4MTBlMXg4YjZ3MTFiN3g4ZTF4OGI1dzE0YjZ4N2UxeDdiNHcxOGI0eDdlMXg3YjN3MjBiM3g3ZTF4N2IydzIzYjF4N2UxeDdiMncyM2IxeDdlMXg3YjJ3MjN4OGUxeDh3MjN4OWUxeDh3MjJ4MTBlMXg5dzIweDExZTF4MTJ3MTFyM3cxeDEzZTF4MTVyMTF4MTRlMXg0MA==\">Link to this drawing<\/a>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30e6\u30cb\u30fc\u30af\u306aURL\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u53cb\u4eba\u306a\u3069\u3068\u4f5c\u54c1\u3092\u5171\u6709\u3059\u308b\u306e\u3082\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u30b5\u30fc\u30d3\u30b9\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u81ea\u4f53\u3082<a href=\"https:\/\/github.com\/binarymax\/bashfill\">GitHub<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306f\u300c\u9ed2\u3044\u753b\u9762\u300d\u3068\u547c\u3070\u308c\u6050\u308c\u3089\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u753b\u9762\u3002 \u30ab\u30e9\u30d5\u30eb\u3068\u306f\u307b\u3069\u9060\u3044\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u304c\u300cbashfill\u300d\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u601d\u3063\u305f\u901a\u308a\u306e\u30a2\u30fc\u30c8\u4f5c\u54c1\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":51538,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[1211],"class_list":["post-51469","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-terminal"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/51469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=51469"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/51469\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/51538"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=51469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=51469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=51469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}