LoginSignup
30
34

More than 5 years have passed since last update.

bashで256色表示するスクリプト用意しておくと便利

Posted at

便利
c33fb274b2def839ab2fd69d81118861.png

#!/bin/bash

echo '
256色
前: 38;05;色番号
背: 48;05;色番号
'
for i in {0..255} ; do
  printf "\x1b[38;05;${i}m 38;05;${i} "
done
echo ''
for i in {0..255} ; do
  printf "\x1b[48;05;${i}m 48;05;${i} "
done
echo ''

関連: bashで16色表示するスクリプト用意しておくと便利

30
34
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
30
34