LoginSignup
1
3

More than 5 years have passed since last update.

bash,zsh,dashで256色を表示する

Last updated at Posted at 2016-08-19

@k_uiさんの記事を基にした、256色をサンプル表示するスクリプトです。bash、zsh、dashで動作確認しました。

for c in $(seq 0 255); do printf "$(tput setaf ${c}) %03d" ${c} ; [ $(($c%16)) -eq 15 ] && echo;done;echo

bashではこんな感じ。

bash_256.png

ところで動作要件よく分かっていません。動かない例とか有れば教えてくださいね。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3