Skip to content

Instantly share code, notes, and snippets.

@nyango
Last active February 22, 2016 16:31
Show Gist options
  • Save nyango/56a5b701aa7b728df252 to your computer and use it in GitHub Desktop.
Save nyango/56a5b701aa7b728df252 to your computer and use it in GitHub Desktop.
シェル上の文字列に色をつける(ピクセル画像も作る)(ANSI color code) ref: http://qiita.com/nyango/items/15de9e9ebfd43b695439
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
AAABBCC
AABBBBD
AAADDDD
のような書き方から上のマリオの画像のようなものを生成
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment