Help us understand the problem. What is going on with this article?

zsh で全 256 色を試しに表示みたい

More than 5 years have passed since last update.
for c in {000..255}; do echo -n "\e[38;5;${c}m $c" ; [ $(($c%16)) -eq 15 ] && echo;done;echo

コピペ実行で

スクリーンショット

用途

これで以前投稿した "ユーザ/ホスト毎に決まったプロンプトの色を自動割り当て" に使う色が増やせる

※ただし

  • bash は無理
  • echotc Co256 って帰ってくる環境に限る
k_ui
ねこほしい
http://k-ui.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away