LoginSignup
10
8

More than 5 years have passed since last update.

ターミナルで256色表示できているか確認する関数

Posted at

256色表示できているか確認する zsh の関数。

function 256colortest() {
    local code
    for code in {0..255}; do
        echo -e "\e[38;05;${code}m $code: Test"
    done
}

ちゃんと256色環境になっていたらきれいに色が出る。

10
8
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
10
8